Data persistance with BufferedReader and PrintWriter?
Posted
by Nazgulled
on Stack Overflow
See other posts from Stack Overflow
or by Nazgulled
Published on 2010-06-05T18:53:57Z
Indexed on
2010/06/05
19:02 UTC
Read the original article
Hit count: 203
I have this simple application with a couple of classes which are all related. There's one, the main one, for which there is only one instance of. I need to save save and load that using a text stream.
My instructor requirement is BufferedReader to load the stream and PrintWriter to save it. But is this even possible? To persist a data object/class with a text stream?
I know how to do it with and object, using serialization. But I don't see how am I supposed to do it using text streams.
Suggestions?
© Stack Overflow or respective owner