About

A text file is a regular file that contains text data.

Binary Data to Characters

To read a text file, you need to give the character set in order to translate the bit (binary data) to character. If you have a problem when displaying the characters (ie text), there is a lot of chance that the given character set is wrong.

You can use character set scanner to detect it.