I've been fiddling with this since reflection came into the language and wrote a little framework with 2 serialization implementations.
You may find them useful. Although they basically do the same as the examples posted above, my code adhere's to a somewhat more OOP compliant code model and it allows you to implement any number of output formats for your files. Included in the codearchives is an ASCII formatter and BinaryFormatter. If you care for it, I also have an XML formatter for you. This one does require a third-party XML module to work though, so I left it out of the code archives.
http://www.blitzbasic.com/codearcs/codearcs.php?code=2311
You may find them useful. Although they basically do the same as the examples posted above, my code adhere's to a somewhat more OOP compliant code model and it allows you to implement any number of output formats for your files. Included in the codearchives is an ASCII formatter and BinaryFormatter. If you care for it, I also have an XML formatter for you. This one does require a third-party XML module to work though, so I left it out of the code archives.
http://www.blitzbasic.com/codearcs/codearcs.php?code=2311