OptimizedFileReader.readSingleValue

string readSingleValue(string path) @safe

Reads a single value from a file (first line, stripped).

This is optimized for /sys files that contain a single value.

Parameters

pathPath to the file to read

Returns

First line of the file, stripped of whitespace

Throws

OptimizationException if the file cannot be read