VFile.ReadAllLines Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
ReadAllLines(String)
Method returns a string array that contains all lines from a text file identified by the path
.
Declaration
public static string[] ReadAllLines(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
Returns
Type | Description |
---|---|
String[] | A string array that contains all lines form a text file identified by the |
Remarks
All lines are read using the UTF-8 encoding.
ReadAllLines(String, Encoding)
Method returns a string array that contains all lines from a text file identified by the path
.
All lines are read using the provided encoding
.
Declaration
public static string[] ReadAllLines(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 array that contains all lines form a text file identified by the |