Aqueduct.Extensions.IO.GetFileText C# (CSharp) Метод

GetFileText() публичный статический Метод

Read a text file and obtain it's contents.
public static GetFileText ( this absolutePath ) : string
absolutePath this The complete file path to write to.
Результат string
        public static string GetFileText(this string absolutePath)
        {
            using (StreamReader sr = new StreamReader(absolutePath))
                return sr.ReadToEnd();
        }