2
Answers

Remove a special character from a file and save in same file.

Harish Sharma

Harish Sharma

15y
4.7k
1
I have to read a file, search for a special character 'ç', its ascii equivalent is 0231 (c-cedilla) and replace it with a space. I have tried File class's ReadAllBytes / ReadAllText / ReadAllLines with Encoding.ASCII to read the file, but when it comes to this special character, it reads as '?' whose ascii equivalent is 63. How to do this? Any kind of help will be appreciated. Thanks in advance harry
Answers (2)
Next Recommended Forum