It just occur to me that following command can print output in text file.
./a.out < infile.txt > actualoutput.txt
But i still wondering what < infile.txt > is for?
And what other arguments i can give when executing this object file?
It just occur to me that following command can print output in text file.
./a.out < infile.txt > actualoutput.txt
But i still wondering what < infile.txt > is for?
And what other arguments i can give when executing this object file?
this is the file that will be used as the standard input ( aka stdin ). Your command is the same as
cat infile.txt | a.out > output.txt