.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

  NameDescription
Public methodStatic memberReadAllText(String)Opens a text file, reads all lines of the file, and then closes the file.
Public methodStatic memberReadAllText(String, Encoding)Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Top
See Also

Reference

Tags :


Page view tracker