FileReadAllText Method (String) |
Opens a text file, reads all lines of the file, and then closes the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static string ReadAllText(
string path
)
Public Shared Function ReadAllText (
path As String
) As String
public:
static String^ ReadAllText(
String^ path
)
static member ReadAllText :
path : string -> string
Parameters
- path
- Type: SystemString
The file to open for reading.
Return Value
Type:
StringAll lines of the file.
See Also