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();
}