in reply to making a list and saving results

That's because you're loading the file in Notepad, which requires both a line break and form feed at the end of each line. Replace \n in the code with \n\f.

EDIT: Oops, I keep forgetting that it's \r instead of \f. Thanks, fishbot_v2. It should be \r\n instead of \n\f as I stated above - though I don't think it matters if the \r comes before or after the \n, since what it does is put the cursor back at the beginning of the current line.