C++ print next line until line.empty

view full story

http://www.unix.com – Hi, could you please help with the following: I have an input file like: Code: one two   three four five   six I want to print the lines starting from 'three' to the empty line. Something like that: Code: if ( line == "three" ) {     while ( !line.empty() )     {           cout << line << endl;           line++;       } } Could you please help, how to do that. ---------- Post updated at 05:48 PM ---------- Previous update was at 04:47 PM ---------- I fix it: (HowTos)