I have a problem in reading from file.

I want the program to keep on reading from the file and store it in a buffer until \n\n is encountered.

Then I want it to input an integer value from the user and then when the user presses enter it should continue reading from the file until again \n\n is encountered or either it is the end of file.

Any help on how should I do it...

loads of examples available on this forum.. please use the search option.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.