Top "Stdin" questions

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

Is there a way to read standard input with JavaScript?

I saw this for lots of other languages but not JavaScript. I'm trying to do problems like: this (codechef.com) …

javascript stdin
Read expression for grep from standard input

How can I make grep read the expression from standard input (stdin)? For example (the following doesn't work): grep -i …

grep stdin
fgets() function in C

I know everybody has told me to use fgets and not gets because of buffer overflow. However, I am a …

c stdin fgets libc
Detect if stdin is a terminal or pipe?

When I execute "python" from the terminal with no arguments it brings up the Python interactive shell. When I execute "…

c++ c qt pipe stdin
C read binary stdin

I'm trying to build an instruction pipeline simulator and I'm having a lot of trouble getting started. What I need …

c binary stdin
Running an interactive command from within Python

I have a script that I want to run from within Python (2.6.5) that follows the logic below: Prompts the user …

python subprocess stdout stdin interactive
What's the fastest way to read from System.in in Java?

I am reading bunch of integers separated by space or newlines from the standard in using Scanner(System.in). Is …

java optimization inputstream stdin
how use EOF stdin in C

I need to input coordinates into an array until EOF is encountered, but something is wrong in my code. I …

c stdin scanf feof
Continuously read from STDOUT of external process in Ruby

I want to run blender from the command line through a ruby script, which will then process the output given …

ruby shell process stdout stdin
How do you redirect standard input to a file in the Windows command line?

On Unix I would do something like: cat > file.txt How can I do this on the Windows command …

batch-file cmd stdin cat