I can easily create the 1 tags files, so might as well. Is the order of the lines important?

Excuse my ignorance, but in the playlist files, are the fids all full 32 bits, so it's like a fixed length record structure? How else could it determine the individual fids?

Is the /var/playlists file of the same format/structure as the database file? What about the /var/tags file. Is their structure fully explained anywhere? It would help enormously if I could short circuit the reverse engineering of these. Surely someone has this info written down somewhere?

I confess, trying to manipulate binary files like this is right at the limit of my knowledge so I need to leverage any help I can get:-)