Thread: Suggestions on a bit of FILE I/O anyone??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    46

    Question 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:
    Last edited by blondie.365; 10-20-2008 at 01:51 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. Question about file I/O from a newbie
    By henrik in forum C Programming
    Replies: 4
    Last Post: 11-13-2007, 12:48 AM
  3. File I/O Question
    By Achy in forum C Programming
    Replies: 2
    Last Post: 11-18-2005, 12:09 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  5. Replies: 3
    Last Post: 03-04-2005, 02:46 PM