Function extra::fileinput::input_state

pub fn input_state(f: &fn(&str, FileInputState) -> bool) -> bool

Iterate directly over the command line arguments (no arguments implies reading from stdin) with the current state of the iteration provided at each call.

Fails when attempting to read from a file that can't be opened.