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)
?