D
Derek Hart
Using VB.NET, I wish to open a text file that will have paragraph marks
throughout it. To replace them, I can probably use the Replace command and
replace vbcrlf. But can somebody give me sample code using the StreamWriter
object, if that is the best way, to open the text file, replace the
paragraph marks, and save those changes back to the text file. I am not
sure if I should read in the text file line by line, do the replacing, save
the whole thing to a variable, and then recreate the text file. Please send
code if you have a way to do this.
Thank You,
Derek Hart
throughout it. To replace them, I can probably use the Replace command and
replace vbcrlf. But can somebody give me sample code using the StreamWriter
object, if that is the best way, to open the text file, replace the
paragraph marks, and save those changes back to the text file. I am not
sure if I should read in the text file line by line, do the replacing, save
the whole thing to a variable, and then recreate the text file. Please send
code if you have a way to do this.
Thank You,
Derek Hart