Integration repl.read/write and file.read/write to stdin/stdout