Quote:The ReadLines and ReadAllLines methods differ as follows: When you use ReadLines, you can start enumerating the collection of strings before the whole collection is returned; when you use ReadAllLines, you must wait for the whole array of strings be returned before you can access the array. Therefore, when you are working with very large files, ReadLines can be more efficient.
ReadLines
ReadAllLines
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)