I have a program in C. Let's assume its compiled name is a.out
(default).
When I use the following command to execute it ...
./a.out < arquivo.txt
... how do I read the content of arquivo.txt
within the program (in function main
same)?