|
|
|
|
|
by Arnavion
2365 days ago
|
|
>The example given with LINQ reads the whole files into memory: The examples indeed use `File.ReadAllLines` which returns a `string[]`, but the same thing can be done with `File.ReadLines` which returns an `IEnumerable<string>` - a lazy sequence of lines read on demand as the sequence is enumerated. |
|