|
Use FileStreams wrapped with ObjectStreams. Also, you need to ensure that your classes or their superclasses implement Serializable. If an application is closed suddenly, there is not much you can do about it, but other than that, you can write your objects to files
__________________
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
|