Can't describe in words...

A server side script that handles the reading/writing of the file might work better.