I know how to use argc and argv in myProg to use the arguments following it, but how do I access the output from the left of the pipe to use as my input for the right? I searched around and am clueless. Thanks in advance!
That helps, but I've run into another problem. How do I read the whole file into a buffer? I know I can use getline to read just one line, but how do I get all of it?