Read from stdin and file