Skip to main content

read_path

Function read_path 

Source
pub fn read_path(path: &Path, stdin: impl Read) -> Result<String, CommandError>
Expand description

The text of the file at path, or of standard input for -.

ยงErrors

CommandError::Argument for an unreadable file or standard input.