File.ReadAllLines Method

 

Opens a text file, reads all lines of the file into a string array, and then closes the file.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReadAllLines(String)

Opens a text file, reads all lines of the file, and then closes the file.

System_CAPS_pubmethodSystem_CAPS_staticReadAllLines(String, Encoding)

Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

Return to top
Show: