public static async Task<string> ReadAllTextFromFileAsync(string path) { using (var streamReader = new StreamReader(File.OpenRead(path))) { return await streamReader.ReadToEndAsync(); } }