Thanks for your help Jimmy

Your suggestion unfortunately didn't work either. Sorry for the very vague question and sloppy code. I was in a hurry and didn't have too much time to do anything

I ended up appending the text file and it kind of worked. It would output to the console perfectly, but the output to the text file was all screwy, but at least it outputted something

The program was turned in today and I can post the results on how to make it work if anyone cares to see, hehe. Thanks again, Adam