Top "Stdin" questions

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

Reading console input in Kotlin

I am attempting to accept input from the console in Kotlin but it is difficult because I am not too …

input console stdin kotlin
Fastest way for line-by-line reading STDIN?

I'm looking for the most time-efficient way to read STDIN line-by-line. The first line is the number of conditions to …

java performance optimization stdin
Using fflush(stdin)

So a quick Google search for fflush(stdin) for clearing the input buffer reveals numerous websites warning against using it. …

c stdin fflush
Nodejs Child Process: write to stdin from an already initialised process

I am trying to spawn an external process phantomjs using node's child_process and then send information to that process …

node.js stdin phantomjs external-process child-process
How to read line by line from stdin in python

Everyone knows how to count the characters from STDIN in C. However, when I tried to do that in python3, …

python stdin
How to extract tar archive from stdin?

I have a large tar file I split. Is it possible to cat and untar the file using pipeline. Something …

pipe stdin tar pipeline
Redirecting standard input\output in Windows PowerShell

What is the required syntax to redirect standard input/output on Windows PowerShell? On Unix, we use: $./program <input.…

powershell powershell-2.0 stdin
Interactive input/output using Python

I have a program that interacts with the user (acts like a shell), and I want to run it using …

python subprocess stdout stdin interactive
Writing to stdin and reading from stdout (UNIX/LINUX/C Programming)

I was working on an assignment where a program took a file descriptor as an argument (generally from the parent …

c unix stdout stdin read-write
node.js: readSync from stdin?

Is it possible to synchronously read from stdin in node.js? Because I'm writing a brainfuck to JavaScript compiler in …

stdin node.js synchronous