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

May 29 2009 6:19 AM
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)