My data lines aren't exactly the way that I mentioned originally, but that's the basic format. There are actually around 70 fields on each line of the file. That being said, what do I need to edit in your script to modify it to the actual setup? I tried playing around with this all afternoon, but I'm not having any luck.

Also, in your split function, you don't have anything for the delimiter. Is that correct?

Thanks.