Article View: borland.public.jbuilder.java.language
Article #18896Re: Best way to save data
From: Conrad Hoesle-Kienzlen
Date: Fri, 03 Apr 1998 00:00
Date: Fri, 03 Apr 1998 00:00
26 lines
1743 bytes
1743 bytes
Jacques, did you look into serialization? That would do what you want. Even more. Be careful with where you want to use it, no matter which method, as most of it will only work with an application, unsigned applets are not allowed to write data to a disk, even on the server where they come from. Personally, I would favour the string method, as it is very easy to handle, using StringTokenizer() . ...Conrad Jacques Chaurette wrote: > Hi, I have a program with lots of buttons, checkboxes, widgets, etc. and of > course data (in and out). > I would like to be able to save all the data and the state of widgets. > My plan is to convert all these values to strings and create a long string > with these values separated by commas. (I have tested this and it works > fine). Or perhaps better, put the values in a string array and save the > string array. I am not sure of what the mechanics are of saving a string > array vs. a string. > Is this the best way to do this? > What about using the properties method for saving the configuration data? > Would it be a good idea to use this for the config. data and then use the > string array only for the in/out data? > Thanks for the help. > Jacques
Technical Details
Message-ID:
<3524D518.6E301343@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6g2i0d$c719@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,cbe25b97218935ce X-Google-Attributes: gidf74b3,public From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com> Subject: Re: Best way to save data Date: 1998/04/03 Message-ID: <3524D518.6E301343@csi.com> X-Deja-AN: 340494176 Content-Transfer-Encoding: 7bit References: <6g2i0d$c719@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: CHK IT-Consulting Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language