Click or drag to resize
Galactic API

FileReadAllAsText Method (FileStream)

Reads the entire contents of a text file, and returns it as a string.

Namespace:  Galactic.FileSystem
Assembly:  Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static string ReadAllAsText(
	FileStream stream
)

Parameters

stream
Type: System.IOFileStream
The file stream to read from.

Return Value

Type: String
The text read, null if an error occurred while reading.
See Also