Results 1 to 4 of 4

Thread: Still need a little help - Can't get file written

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    47

    Unhappy Still need a little help - Can't get file written

    Hello,
    I've created a small inventory application that allows the user to add, remove, change records etc. It uses random access files.

    The app compiles fine, but there seems to be a minor runtime error that I can't debug. Basically, when I want to add a record, the app asks me for all the information to enter, but right after entering it, the app exits?? I have no clue why.

    Please help me. Thanks!!

    My code is attached.
    Attached Files Attached Files
    Last edited by cpluspluser; Mar 29th, 2003 at 10:07 PM.

  2. #2
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    On line 335,

    while(quit =false);

    it should be

    while(quit == false);

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    47

    ...

    Thanks...that helps, but for some reason the stupid file is still not being written. I can't for the life of me see what the matter is.

    When displaying the file (via display function) I'm getting a lot of "garbage" being displayed to the screen...really weird stuff.

    Any further ideas?

    Thanks bunches!!

  4. #4
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    Sorry, I can't help you. Your display function works perfectly on my system; I didn't get any garbage characters while it displayed the file. May I know what compiler you are using?

    btw, you made the same mistake on line 249,

    while(quit =false);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width