This documentation is archived and is not being maintained.

File.ReadAllLines Method

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

Name Description
File.ReadAllLines (String) Opens a text file, reads all lines of the file, and then closes the file.
File.ReadAllLines (String, Encoding) Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Show: