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

VFile.ReadAllText Method

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

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

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

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