First, Im not sure if this is the right way to read the paragraphs, and secondly, what is the best way to break up the line according to the variables? I have done this using fscanf in C but I hear that is no good and should not be done in c++.
Sorry, by paragraph I mean an empty line separating the two blocks of lines - the blocks of (non-empty) lines are the paragraph. So In my example there are 2 paragraphs.
maybe an associative array combining both if possible. But the point is I need to process these arrays, output a single string, then move on to the next "paragraph" (block of text).