I have a uni assignment where you have to do stuff to files in C.. Currently I have it starting, the getting the filename from stdin, the doing the stuff..which all works fine..
Unfortunately, rather than putting the filename in after the program starts, I have to do it in the form "./program fileName1 fileName2" ..
Can someone please tell me briefly how to pass.. parameters to a program like that?
Cheers,
George
Unfortunately, rather than putting the filename in after the program starts, I have to do it in the form "./program fileName1 fileName2" ..
Can someone please tell me briefly how to pass.. parameters to a program like that?
Cheers,
George