0

Hello,

I have a textbox which I write data out to. I use "\n" to make sure that the next line of data is written on a new line. This works but I keep getting an unwanted character at the end of each line of data written. It looks like a small square - I think its because I'm using "\n". Does anyone know how to get rid of this character or a better way to write the data to new lines.

Thanks in advance

SubProf

2
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by SubProf
0

Look, I tried it myself it works fine without replacing anything, Just I read text file using this

string str = File.ReadAllText(filePath);
textbox.Text = str;

No additional characters added!!
May be you should provide non-unicoding in ReadAllText method.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.