I wrote a little app that has the ability to change, add, or delete a line of text in multiple txt files by pulling each one into a rich text box, changing the text line, and then saving the changes back to the file. Every thing works seems to work ok.
The only issue i have is that when i add a new line to the bottome of the rich text box and there are empty lines imported from the text file, then the text will be written after the blank lines.
Is there any way to remove empty lines from a text file or rich text box before i add the line or import the file?
thanks
Scott
The only issue i have is that when i add a new line to the bottome of the rich text box and there are empty lines imported from the text file, then the text will be written after the blank lines.
Is there any way to remove empty lines from a text file or rich text box before i add the line or import the file?
thanks
Scott