ReadAllText Method
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.IO Namespace
File Class
File Methods
ReadAllText Method
ReadAllText Method (String)
ReadAllText Method (String, En ...
File Methods
AppendAllText Method
AppendText Method
Copy Method
Create Method
CreateText Method
Decrypt Method
Delete Method
Encrypt Method
Exists Method
GetAccessControl Method
GetAttributes Method
GetCreationTime Method
GetCreationTimeUtc Method
GetLastAccessTime Method
GetLastAccessTimeUtc Method
GetLastWriteTime Method
GetLastWriteTimeUtc Method
Move Method
Open Method
OpenRead Method
OpenText Method
OpenWrite Method
ReadAllBytes Method
ReadAllLines Method
ReadAllText Method
Replace Method
SetAccessControl Method
SetAttributes Method
SetCreationTime Method
SetCreationTimeUtc Method
SetLastAccessTime Method
SetLastAccessTimeUtc Method
SetLastWriteTime Method
SetLastWriteTimeUtc Method
WriteAllBytes Method
WriteAllLines Method
WriteAllText Method
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
File
.
.
::
.
ReadAllText Method
Opens a text file, reads all lines of the file into a string, and then closes the file.
Overload List
Name
Description
ReadAllText(String)
Opens a text file, reads all lines of the file, and then closes the file.
ReadAllText(String, Encoding)
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Top
See Also
Reference
File Class
File Members
System.IO Namespace
Tags :