I had a feeling this was going to happen. I've spent the last few hours trying to get this working, and it seems like all the trouble is caused by the problems with how the script searchs the text file.

Can anyone just give me a quick hint to what to carve out to get it to just take the entire text file and append it to a combined log file?