K
K
Kamikaze10242020-12-03 13:44:46
C++ / C#
Kamikaze1024, 2020-12-03 13:44:46

How to read lines from stdin without blocking?

There is such a script:
#!/bin/bash
cat file | ./programm
exit 0

How to correctly implement the c++ program programm so that it can correctly read these lines from
stdin and not block?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question