Read a text file saved with Big Endian Unicode encoding
using System; using System.IO; public class Class1 { public static void Main(string[] args) { System.Text.Encoding encoding = System.Text.Encoding.BigEndianUnicode; StreamReader reader = new StreamReader("TextFile.txt", encoding); string line = reader.ReadLine(); while (line != null) { Console.WriteLine(line); line = reader.ReadLine(); } } }