Export (0) Print
Expand All

File.ReadAllText Method

Opens a text file, reads all lines of the file into a string, and then closes the file.

Name Description
File.ReadAllText (String) Opens a text file, reads all lines of the file, and then closes the file.
File.ReadAllText (String, Encoding) Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

Community Additions

ADD
Show:
© 2014 Microsoft