C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / NativeFile Class / ReadAllText Method / ReadAllText(String,Encoding,NativeFileShare) Method
The file to open for reading.
The encoding.
The sharing.

In This Topic
ReadAllText(String,Encoding,NativeFileShare) Method
In This Topic
Opens a text file, reads all lines of the file, and then closes the file.
Syntax
'Declaration
 
Public Overloads Shared Function ReadAllText( _
   ByVal path As System.String, _
   ByVal encoding As System.Text.Encoding, _
   Optional ByVal sharing As NativeFileShare _
) As System.String
 

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