Possible Duplicate:
How can I detect the encoding/codepage of a text file
I have to read a (text) .txt file.But I don't know its encoding type.The encoding type may be
Encoding.ANSI
or
Encoding.Unicode
So my question is 'How can we know and read that a specific file is of particular encoding type?'