Aqueduct.Extensions.IO.GetFileText C# (CSharp) Method

GetFileText() public static method

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