I have written a c++ command line program that successfully reads certain lines from a file, and then does something with the this data.
But, I want to use pipes in unix and windows to accomplish the same task. In order words:
cat file | ./myProgram
I have tried to google this, but I didn't find anything useful. Thanks in advance!