How to add a group of integers
<p>Can some one tell me how to do this and explain it to me:
 Write a program that reads a text file that contains groups of integers that start with the word “next”. For each group, the program computes and writes out the sum of integers in that group. There may be any number of groups.</p>

<p>I'm not asking you to do my home work, I need some one to explain it. I got stuck with the scanner</p>
