Click here to Skip to main content
15,895,192 members

Comments by Member 15386332 (Top 5 by date)

Member 15386332 20-Oct-21 23:38pm View    
Thanks for your code too. I was actually able to use your code with something else. Much Appreciated.
Member 15386332 20-Oct-21 23:37pm View    
Thanks, I got it to work and integrated it with some other code. Much Appreciated
Member 15386332 11-Oct-21 0:59am View    
Hello George,
I got your code to work, thanks. I had to modify it a little because I still wasn't getting a left justification or trimming the beginning white space. Here's what I did to modify it.
To just output it:
Console.WriteLine(l.Trim());

I had to do something different when writing to a file.
File.AppendAllText(@"C:\temp\LittleStoryExtractAgain.txt",l.Trim() + "\n");

Thoughts on a better way to put it to a file?

Thanks
Member 15386332 11-Oct-21 0:47am View    
Hello Bill,

You've got me stumped. I've been looking it up. I don't know how to call a List<string> in the static void Main(string[] args). I understand that I need a filepath, startflag and endflag. I know exactly what I want to pass but how?
Member 15386332 8-Oct-21 7:56am View    
Thanks George, it works; however, something I noticed. I have something that looks like this
(whitespace)Line6
(tab)Line7
(tab)(tab)Line8
How do I remove the tabs? When I put .trim in every place I'm only able to remove the tabs or whitespace on the first line. How do I remove the tabs or leading whitespace on all the lines to look like this?
Line6
Line7
Line8

Thanks