KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I remove empty lines in a string in C#? I am generating some text files in C# (Windows Forms) and for some reason there are some empty lines. How can I remove them after the string is generated (using StringBuilder and TextWrite ). Example text file: THIS IS A LINE THIS IS ANOTHER LINE AFTER SOME EMPTY LINES!
Tags (comma-separated)
Save Edits
Cancel