| Edit | Rename | Changes | History | Upload | Download | Back to Top |
Many applications have a need to serialize some kind of configuration information - and people tend to take one of two tacks:
Enter the XML Configuration package. I have been using this on the BottomFeeder project with Dave Murphy - and it made life a lot simpler once I switched to it. I no longer have to worry about malformed textual elements that screw up my stream parsing; the XML config package just handles that. It's also amazingly easy to use.
Save an object to a file
| file | file := XMLConfigFile filename: aFile. file saveObject: self. file saveConfiguration
Read the object back in
| file | file := Tools.XMLConfigFileSupport.XMLConfigFile filename: filename. ^file loadConfiguration first.
And that's it - no fuss, no muss - easy serialization of objects. Try it out!
| Edit | Rename | Changes | History | Upload | Download | Back to Top |