read_string


Description:

protected string read_string (string property) throws Error

Reads an attribute value as a string.

For values that do not change or if a change is signaled by a kernel uevent, then GUdev.get_sysattr should be used instead.

Parameters:

property

The name of the sysfs attribute to write to.

Returns:

The value that was read.

Exceptions:

Error

if there was an error while reading.