remove special character from string
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
Hi to all I am rading text file ...... line by line by using string line = rd.ReadLine(); but line contain special character like \t\r\n I want to remove all the character from that line .. HOw it possible Yogesh Yogesh
-
Hi to all I am rading text file ...... line by line by using string line = rd.ReadLine(); but line contain special character like \t\r\n I want to remove all the character from that line .. HOw it possible Yogesh Yogesh
Add
line = line.Replace("\t","").Replace("\r","").Replace("\n","");
after yourstring line = rd.ReadLine();
regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.