By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,564 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,564 IT Pros & Developers. It's quick & easy.

read MS-DOS text file

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Abel <an*******@discussions.microsoft.com> wrote:
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).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

P: n/a
It was really it: CodePage 437!!!!
So many thanks Jon.
Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.