| FileReadAllAsText Method (String) |
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(
string path
)
Public Shared Function ReadAllAsText (
path As String
) As String
public:
static String^ ReadAllAsText(
String^ path
)
static member ReadAllAsText :
path : string -> string
Parameters
- path
- Type: SystemString
The path to the file to read.
Return Value
Type:
StringThe contents of the text file as a string, null if it could not be read or there
was an error while reading.
See Also