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

VFile.ReadAllLines Method

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

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

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

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