VFile.ReadLines Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9313)
ReadLines(String)
Method returns an enumerable that iterates through the lines from a text file identified by the path.
Declaration
public static IEnumerable<string> ReadLines(string path)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The path of the file.  | 
    
Returns
| Type | Description | 
|---|---|
| IEnumerable<String> | An enumerable that iterates through the lines from a text file identified by the   | 
    
Remarks
All lines are read using the UTF-8 encoding.
ReadLines(String, Encoding)
Method returns an enumerable that iterates through the lines from a text file identified by the path.
All lines are read using the provided encoding.
Declaration
public static IEnumerable<string> ReadLines(string path, Encoding encoding)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The path of the file.  | 
    
| Encoding | encoding | The character encoding.  | 
    
Returns
| Type | Description | 
|---|---|
| IEnumerable<String> | An enumerable that iterates through the lines from a text file identified by the   | 
    
Remarks
All lines are read using the UTF-8 encoding.