G
Guest
Hello,
My code is suppose to write to an existing file. But after my C# code
appends the file, the previous text loses all the endline characters,
becoming one long line. How can I retain the formating of the pre-existing
text?
FileStream stream = new FileStream(strFileName, FileMode.Append,
FileAccess.Write);
StreamWriter writer = new StreamWriter(stream);
writer.WriteLine(strErrorMessage);
Thanks in advancefor any help....
Duckwon
My code is suppose to write to an existing file. But after my C# code
appends the file, the previous text loses all the endline characters,
becoming one long line. How can I retain the formating of the pre-existing
text?
FileStream stream = new FileStream(strFileName, FileMode.Append,
FileAccess.Write);
StreamWriter writer = new StreamWriter(stream);
writer.WriteLine(strErrorMessage);
Thanks in advancefor any help....
Duckwon