open_reader! : Path => Try(
Reader,
[
PathErr(
IOErr,
Path,
),
],
)
Open a file for buffered reading using the default buffer capacity.
Failing to open reports the path, using the same PathErr as the
whole-file operations so both combine in one error type.
reader = File.open_reader!("LICENSE")?
line = reader.read_line!()?