V
Verde
I'm writing text to a file using the following code:
strTemp += "Message: " + tmpMessage.ToString() + "\n" + "Site Number: " +
tempSiteID.ToString() + "\n";
StreamWriter sw = new StreamWriter(logFilePath, true);
sw.Write(strTemp);
sw.Close();
When I open the text file in notepad, there are no linebreaks. instead there
are little black box ASCII characters where the line breaks should be. How
do I get real linebreaks?
strTemp += "Message: " + tmpMessage.ToString() + "\n" + "Site Number: " +
tempSiteID.ToString() + "\n";
StreamWriter sw = new StreamWriter(logFilePath, true);
sw.Write(strTemp);
sw.Close();
When I open the text file in notepad, there are no linebreaks. instead there
are little black box ASCII characters where the line breaks should be. How
do I get real linebreaks?