this is the code i have to open the following text file:
FILE * fp;
fp = fopen ("student.txt", "r");
this code works correctly. How would i allow the user to be able to
specify the first record, last record, previous record and next record?
You can compile this code to standalone executable and process the command
line arguments using the argument variables to the function 'main' called
argc, and argv. The arguments could specify the record number.
However I am afraid that this is not the asnwer for the question you
wanted to ask. I suggest that you try be more precise asking your
[ back to toc ]