Function read_compressed_file_or_stdin

Source
pub fn read_compressed_file_or_stdin<'a>(
    filename: &'a str,
    binary: bool,
    stdin: StdinLock<'a>,
) -> Input<'a> 
Expand description

Return an Input to read from a possibly compressed file.

If the file is compressed it is transparently uncompressed. If the filename is “-”, returns an Input reading data from stdin. Argument binary is passed on to Input.