read MS-DOS text file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to all

I'm trying to read an old MS-DOS text file, using a StreamReader, but I can't retrieve the original text, I have used all the possible encoding UTF-7,UTF-8, Unicode and ASCII. How I can do it
Thanks

Abel
 
Abel said:
I'm trying to read an old MS-DOS text file, using a StreamReader, but
I can't retrieve the original text, I have used all the possible
encoding UTF-7,UTF-8, Unicode and ASCII. How I can do it?

Well, you need to find out what encoding it really *is* in. It may well
be code page 437, in which case just use Encoding.GetEncoding(437).
 
Back
Top