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

Reading in a deliminated file in C

Options
  • 24-06-2003 3:29pm
    #1
    Registered Users Posts: 6,240 ✭✭✭


    Hi I have a file an example of teh format is below
    1031 00005651 admin 5 Printer1 1 7123- STD xx                     23.05.2003 15:03:33 26.05.2003 08:50:30 1 1
    1032 00005651  
    

    now all I want to do is read in the first two columns(in seperate files)
    ie the output should be
    file 1/
    1031
    1032
    file 2/
    00005651
    00005651

    any ideas??


Comments

  • Registered Users Posts: 6,240 ✭✭✭hussey


    actually I got what I need
    silly me was using fscan

    I used fgets and then sscan and it is all sorted


Advertisement