-
Piping in text output
I got my program to work fine now I just need to handle user input from command line. They need to be able to pipe in the output of the text file using the cat utility as such
cat text.txt | ./program
is there any special way i need to handle this outside of
Code:
int main(argc argv)
?
-
There's a difference between piping and command line arguments (a lot of differences; in fact they have nothing in common). If your users are piping input in, then just read from stdin and that's it.