J
Jeff
Hi -
I'm setting up a streamreader in a VB.NET app to read a text file and
display its contents in a multiline textbox.
If I set it up with System.Text.Encoding.Unicode, it reads a unicode file
just fine. If I set it up as ASCII, it reads a non-unicode text file. But
I don't know the file format in advance.
How can my app determine whether to use Unicode encoding before I read the
file?
- Jeff
I'm setting up a streamreader in a VB.NET app to read a text file and
display its contents in a multiline textbox.
If I set it up with System.Text.Encoding.Unicode, it reads a unicode file
just fine. If I set it up as ASCII, it reads a non-unicode text file. But
I don't know the file format in advance.
How can my app determine whether to use Unicode encoding before I read the
file?
- Jeff