Skip to content

IFileSystem.ReadAllText method

Reads all text from the file at the specified path.

public string ReadAllText(string path, Encoding? encoding = null)
parameter description
path The path of the file.
encoding The optional encoding to use when reading the file.

Return Value

The text content of the file.

See Also