Suggestions on a bit of FILE I/O anyone??
Ok me n 2 friends have been working on a lil project, its supposed to be like a multiple choice examination thing. Codes have been working perfectly fine, but we have a question on structures and FILE I/O, by the way we are all beginers. We have been pulling questions from a text file and storing the data into structures, it works fine. The next thing was though, we were supposed to print out all the questions the user got wrong, we used a tmp file to store this data, But now we ran into a problem we are supposed to do this until the user says he doesnt want to take all the wrong questions again. So evertime the user gets wrong answers we print it out, and ask them do u want to take the wrong questions again this is supposed to happen until the user has gotten all correct or says i dnt want to take it again. But the approach we have taken is a bit tricky cuz we are assumin we need two tmp files and later it wnt be overwritten cuz the tmps are destroyed till the program exits. Any ideas would be welcome, or other approaches. The codes are below: