15,895,192 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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