Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

C Program Writing & Reading To File Question

Options
  • 06-03-2002 5:10pm
    #1
    Closed Accounts Posts: 14,483 ✭✭✭✭


    This post has been deleted.


Comments

  • Registered Users Posts: 1,931 ✭✭✭Zab


    You forgot to read from the file within the while loop! ( new_number remains constant, so the while loop never stops looping... )


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


  • Registered Users Posts: 1,931 ✭✭✭Zab


    No problem. You also left out an equals sign when your checking the firstflag variable... and your setting the firstflag in the wrong place ( should be in the if block, not the else block ).


  • Closed Accounts Posts: 14,483 ✭✭✭✭daveirl


    This post has been deleted.


Advertisement