| 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
)
Public Shared Function ReadAllAsText (
stream As FileStream
) As String
public:
static String^ ReadAllAsText(
FileStream^ stream
)
static member ReadAllAsText :
stream : FileStream -> string
Parameters
- stream
- Type: System.IOFileStream
The file stream to read from.
Return Value
Type:
StringThe text read, null if an error occurred while reading.
See Also