wee, two days later...

for some reason, my fseek() wasn't being processed every loop, so I changed the fseek to a fgetc and it functions the same way.

I'll post the new function for anyone who wants it in a say or so after I get rid of all the bugs. I will make a complete database script as well for anyone who doesn't like mySQL or does not have a localhost/server that supports it.