Abstract process.stdin
Use first file argument as input
Corner case for empty -f file.