I have a file A that has multiple paragraphs. I need to identify where I matched words from another file B. I need to tell the paragraph, line number, and word number of every where, and identify if it was matched. I've finally gotten so far, having given up on vectors, and ararys, and string splitting. I learned (I think) stringstream :). The problem is, I have the line numbers counting, and the words counting and matching, but I just can't seem to get the paragraph numbers. Could someone please help me? *edit* Each paragraph is separated by "\n" and each sentence is separated by a "." I'll still have to figure out a regex to ignore all other punctuation so that words match 100%.