File Reading

  • Thread starter cplusplusquestion
  • Start date
C

cplusplusquestion

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top