Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFile.ReadLines Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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 path.

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 path.

Remarks

All lines are read using the UTF-8 encoding.

In This Article
  • ReadLines(String)
  • ReadLines(String, Encoding)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies