ReadAllText(String,Encoding,NativeFileShare) Method
In This Topic
Opens a text file, reads all lines of the file, and then closes the file.
Syntax
Parameters
- path
- The file to open for reading.
- encoding
- The encoding.
- sharing
- The sharing.
Return Value
A string containing all lines of the file.
See Also