OptimizedFileReader.readLines

string[] readLines(string path) @safe

Reads a file and returns its contents as lines.

This is optimized for files that are typically read line-by-line, such as /proc files.

Parameters

pathPath to the file to read

Returns

Array of lines from the file

Throws

OptimizationException if the file cannot be read