You can pass an encoding to ReadAllText:
File.ReadAllText(pathToFile, System.Text.Encoding.UnicodeEncoding);
That being said, how you should read them depends on how you are writing them. If you are simply pushing bites into a file, then you should read bites from the file. If you are converting to characters first, then you can read them as text. Just make sure you know how to undo the conversion to characters.
1 Like