Top "Stdin" questions

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

How to use Scanner to read silently from STDIN in Java?

I want to make a Java program that reads a Password from STDIN silently. I mean, without outputting any pressed …

java stdin java.util.scanner
how to redirect stdin to java Runtime.exec?

I want to execute some sql scripts using Java's Runtime.exec method. I intend to invoke mysql.exe / mysql.sh …

java redirect stdin runtime.exec
/dev/stdin with herestring

I would like a Bash script that can take input from a file or stdin, much like grep, for example $ …

bash cygwin stdin heredoc
reading from stdin, while consuming no more memory than needed

I am trying to create a line-by-line filter in python. However, stdin.readlines() reads all lines in before starting to …

python pipe stdin line-by-line
How to pipe input to sublimetext on linux?

How do I receive text from stdin into sublimetext editor? With vim it works like this: echo "potato potato potato" | …

linux bash pipe stdin sublimetext
fflush(stdin) function does not work

I can't seem to figure out what's wrong with this code: #include <stdio.h> #include <ctype.h&…

c stdin fflush
How to read from stdin or from a file if no data is piped in Python?

I have a CLI script and want it to read data from a file. It should be able to read …

python pipe stdin command-line-interface
What is stdin and how is it being used with fscanf?

I dont understand the connection between stdin and fscanf struct musteri{ int no; char name[40]; char surname[25]; double arrear; }; int …

c file stdin scanf randomaccessfile
C code for ignoring the enter key after input

I am having a problem with the Enter key or character in the stdin stream messing up following input calls. …

c user-input stdin enter
peek at input buffer, and flush extra characters in C

If I want to receive a one character input in C, how would I check to see if extra characters …

c input stdin flush peek