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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

[c++] reading data from file

  • 17-12-2002 7:26pm
    #1
    Closed Accounts Posts: 1,325 ✭✭✭


    File:

    blah 4 5 6 7
    1 2 3 4

    blah2 6 7 2 3 9 0
    2 3 4

    blah3 3 4 5 6
    2 3 1

    Question:

    iv been trying all day to try and get this working so any help would be appreciated...

    What i want to do is read the data from the above example file.
    1. first string is the name (blah)
    2. read in the numbers
    3. ****ignore/remove/wotever the line b/n data******* (main prob with this):confused:
    4. read the next string (blah2) in. etc.

    Any ides ppl??

    A.


Comments

  • Closed Accounts Posts: 6,718 ✭✭✭SkepticOne


    Post the code up + a description of what is going wrong.


  • Closed Accounts Posts: 1,325 ✭✭✭b3t4


    Would of been impossible to post up the
    code as its working with alot of classes.

    got it working in the end with some manip
    of the tellg and seekg functions.
    Classes where slightly changed aswell.

    Cheers anyways,

    A.


Advertisement