Thanks very much, this serialising certainly looks interesting, I'll be sure to keep it in mind. Unfortunately I have a lot of other scripts that read from this same file and its important that it keeps the same format, and I can't go changing every script for serialising, although it would probably be a much better thing to do. Oh well, Its only a few lines of code to do this writing loop, I just wondered if there was a shorter way of doing it.
But serialising does look very interesting, and I'm sure I'll be using a lot if it in the future. Thanks!
~ Paul