T
Tomomichi Amano
Hello!
I am making a program where it reads out a TXT file like this...
string line=sr.ReadLine();
textBox1.Text+=line += "\r\n";
The problem with this code is that, each time it loads a file, a unneeded
"\r\n" is added to the end of the text.
So, I would like know how to take away "\r\n" from the end of a string.
Thanks in advance!
I am making a program where it reads out a TXT file like this...
string line=sr.ReadLine();
textBox1.Text+=line += "\r\n";
The problem with this code is that, each time it loads a file, a unneeded
"\r\n" is added to the end of the text.
So, I would like know how to take away "\r\n" from the end of a string.
Thanks in advance!