using (StreamReader reader = new StreamReader(AppDomain.CurrentDomain.BaseDirectory + "a.txt", Encoding.UTF8)) { fileContent = reader.ReadToEnd(); }