Tuesday, 17 September 2013

Environment NewLine Not Working In Text File

Environment NewLine Not Working In Text File

I am instantiating a StringBuilder and trying to write to a text file. My
code writes to the text file fine but the StringBuilder is not creating
carriage returns for me.
Ive tried..
Environment.NewLine
\n
.AppendLine()
and nothing seems to work with the StringBuilder object
Here is some code I am using to create the string that gets inserted into
the flat file
'ErrorLog is a new StringBuilder object
_mErrInfo.ErrorLog.Append("Start Validiting Detail....." +
Environment.NewLine)

No comments:

Post a Comment