stub for reading from stdin and file