$cc a.c $./a.out < inpfilename
I want to print inpfilename on stdout. How do I do that ? Thanks for the help in advance...
Only the parent shell is going to know that. The program, a.out is always going to see it as stdin.