If you really want to know what's in a text file, the command cat alone won't help you. You have to go one level deeper where you really take a look at each byte of the file: use a hexeditor. This way you can also take a look at executable files, images and all the other file types.