VFile.ReadAllText Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
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
Type | Description |
---|---|
String | A String that contains text content of a file identified by the |
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)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
Encoding | encoding | The character encoding. |
Returns
Type | Description |
---|---|
String | A String that contains text content of a file identified by the |