File Reading

Discussion in 'C++' started by cplusplusquestion@gmail.com, Jul 8, 2008.

  1. Guest

    I've posted this message this morning, it does not show. Is there
    anything wrong? My message is:

    I've a binary file with format:

    a bla bla bla bla
    b 23 45 87 39

    a bla bla bla bla
    b 34 28 98 90

    ..........


    When I find first character of the line is 'a', I want to skip reading
    rest of the line and go to next line "b 23 45 87 39". It seems
    complicated for me to use std::getline. Is there any suggestion?
     
    , Jul 8, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darrel
    Replies:
    3
    Views:
    695
    Kevin Spencer
    Nov 11, 2004
  2. Luis Esteban Valencia Muñoz
    Replies:
    3
    Views:
    1,435
    Scott Allen
    Jun 4, 2005
  3. Replies:
    0
    Views:
    802
  4. Karim Ali

    Reading a file and resuming reading.

    Karim Ali, May 25, 2007, in forum: Python
    Replies:
    2
    Views:
    388
    Hrvoje Niksic
    May 25, 2007
  5. =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki

    Reading of file by next of map file and by next of file descriptor.

    =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki, Jul 10, 2007, in forum: C++
    Replies:
    1
    Views:
    816
    Alf P. Steinbach
    Jul 10, 2007
Loading...

Share This Page