You could run something like a database, which is probably pretty complex to code. Or, as I understand it, you could do something pretty simple. It involves opening the file, adding your data, and then closing the file. The Perl gurus will have to back me up on this one, but that's the gist of it.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.