This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Posted by Tobi on November 24, 2001 at 7:57 AM
I have the same problem! And it is quite urgent! I need to read data from
a while and read it back!
Please help me!
> > hello, i'm writing a program that takes Multiple textfields
> > and save them in a file. i make each textfield a String object
> > and write each object into a file.i'm also able to each the text
> > fields as objects back to each respective fields.
> > my problem is how to make the file like a database where i can
> > append each new record into the file rather than saving each record
> > into a new file.
> > do i have to create a randomaccessfile and save my textfields as
> > an array of objects???
> > is there a simpler way of doing this???
> > thanks!!!!
> Consider using java.util.Properties to construct a Properties object
> that encapsulates key/value pairs. You can load and save it to a file.
> The Java Tutorial, trail: Essential java classes, lesson: Setting
> program attributes deals with that.
> Hope it helps.