I will read a file from my computer using
StreamReader sr = new StreamReader(FileName);
string str = sr.ReadToEnd();
In this i am getting some illegal characters like /n,/r and some other.
I Would like to replace illegal characters with a empty character. I tried of making an character array but i did not able to remove those so can any one help me
1 Answer