Top "Stdin" questions

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

Reading piped input with C++

I am using the following code: #include <iostream> using namespace std; int main(int argc, char **argv) { string …

c++ pipe stdin cin
Read stdin as binary

I have code that opens and reads a file from binary. with open (file, mode="rb") as myfile: message_string=…

python stdin
ffmpeg: which file formats support stdin usage?

I know ffmpeg is able to read data from stdin rather than reading from disk using ffmpeg -i -. Is …

file stream ffmpeg stdout stdin
Python 3: How to specify stdin encoding

While porting code from Python 2 to Python 3, I run into this problem when reading UTF-8 text from standard input. In …

python python-3.x unicode encoding stdin
Multiple inputs and outputs in python subprocess communicate

I need to do something like this post, but I need to create a subprocess that can be given input …

python subprocess stdout stdin pexpect
Golang read from pipe reads tons of data

I'm trying to read an archive that's being tarred, streaming, to stdin, but I'm somehow reading far more data in …

go stdin tar
Is there any way to peek at the stdin buffer?

We know that stdin is, by default, a buffered input; the proof of that is in usage of any of …

c buffer stdin peek
Understanding stdin stdout stderr

I'm trying to understand stdin stdout and stderr. I see them used in people's code all the time and I …

stdout stdin stderr
Setting smaller buffer size for sys.stdin?

I'm running memcached with the following bash command pattern: memcached -vv 2>&1 | tee memkeywatch2010098.log 2>&1 | ~/bin/memtracer.…

python stdin buffering
Read binary data from std::cin

What is the easiest way to read binary (non-formated) data from std::cin into either a string or a stringstream?

c++ stream binary stdin cin