ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / NativeFile Class / ReadAllText Method / ReadAllText(String) Method
The file to open for reading.

In This Topic
    ReadAllText(String) 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 _
    ) As System.String
    public static System.string ReadAllText( 
       System.string path
    )

    Parameters

    path
    The file to open for reading.

    Return Value

    A string containing all lines of the file.
    See Also