Top "Stdin" questions

Standard input (stdin, file descriptor 0) is the input stream to a program.

In python, how to check the end of standard input streams (sys.stdin) and do something special on that

I want to do something like: for line in sys.stdin: do_something() if is **END OF StdIn**: do_something_…

python stdin eof
Read stdin stream in a batch file

Is it possible to use a piped stdin stream inside a batch file? I want to be able to redirect …

windows batch-file stdout stdin
How to stop reading multiple lines from stdin using Scanner?

I'm working on an JAVA assignment should process multiple lines of input. The instructions read "Input is read from stdin." …

java stdin java.util.scanner
How to write data to existing process's STDIN from external process?

I'm seeking for ways to write data to the existing process's STDIN from external processes, and found similar question How …

linux process stdin file-descriptor tty
sys.stdin.readlines() hangs Python script

Everytime I'm executing my Python script, it appears to hang on this line: lines = sys.stdin.readlines() What should I …

python stdin freeze readlines
getpasswd functionality in Go?

Situation: I want to get a password entry from the stdin console - without echoing what the user types. Is …

passwords stdin go getpasswd
End of File in stdin

A question about this has been asked here End of File (EOF) in C but it still doesn't completely solve …

c console stdin eof
Standard input and output units in Fortran 90?

How can I read and write to the standard input, output and error streams stdin, stdout and stderr in Fortran? …

fortran stdout stdin stderr fortran90
Using files as stdin and stdout for subprocess

How do I replicate the following batch command using python subprocess module? myprogram < myinput.in > myoutput.out In …

python subprocess stdout stdin
Fastest stdin/out IO in python 3?

I've been solving a few problems on SPOJ.pl using python 3.1.2 and some peoples fast result on simple problems makes …

python performance io python-3.x stdin