VFile.ReadAllText Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)
ReadAllText(String)
Method returns a String that contains text content of a file identified by the path
.
Declaration
public static string ReadAllText(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
Returns
Remarks
Content of the file is read using the UTF-8 encoding.
ReadAllText(String, Encoding)
Method returns a String that contains text content of a file identified by the path
.
Content of the file is read using the provided encoding
.
Declaration
public static string ReadAllText(string path, Encoding encoding)