ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 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 String, _
       ByVal encoding As Encoding, _
       Optional ByVal sharing As NativeFileShare _
    ) As String
    public static string ReadAllText( 
       string path,
       Encoding encoding,
       NativeFileShare sharing
    )

    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