How can i insert newline from silverlight to notepad while saving a file.
I have taken one string builder class ,which will contain some text .
But when I try with "\n" or "%0d%0A" with AppendLine it is not taking as new line.
Can some body help me to do this?
Answer: 1
On windows a line breal is \r\n. However, AppenLine should insert the right line break. If you wanna do the line break depending on the underlying OS then use Environment.NewLine.
Hope this helps
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog