AzureFunctions.Code.FileSystemHelpers.ReadAllTextFromFileAsync C# (CSharp) Method

ReadAllTextFromFileAsync() public static method

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