Article View: borland.public.jbuilder.java.language
Article #14550Re: Tools to manage configuration file (my_app.ini) ?
From: Didier DOUSSAUD
Date: Mon, 23 Aug 1999 00:00
Date: Mon, 23 Aug 1999 00:00
28 lines
1530 bytes
1530 bytes
Thanks,
with java.util.Properties it's ok.
Others questions
1 the package java.util.ResourceBundle seems to be used for localization of
interfaces : Is it a good idea to use it for configuration of the
application ?
2 it is impossible to modify RessourceBundle (no "setProperty" method) : is
it true ?
3 to load/save my properties file I use these lines :
String FileName = System.getProperty( "user.dir" ) + File.separator +
"test1.ini";
FileInputStream f = new FileInputStream( FileName );
Properties props = new Properties();
props.load( f );
IS IT THE GOOD SOLUTION.
Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> a οΏ½crit dans le message :
uiu6d72dh.fsf@sds.no...
> "Didier DOUSSAUD" <d_doussaud@csi.com> writes:
>
> > I want to do the equivalent of "my_app.ini" file (used on Windows
> > and Linux).
> >
> > How to do this?
>
> Look at java.util.Properties and java.util.ResourceBundle.
Technical Details
Message-ID:
<7pr3n1$fjk6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7pdvau$17b7@forums.borland.com> <uiu6d72dh.fsf@sds.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,65b8a95afe79853d X-Google-Attributes: gidf74b3,public From: "Didier DOUSSAUD" <d_doussaud@csi.com> Subject: Re: Tools to manage configuration file (my_app.ini) ? Date: 1999/08/23 Message-ID: <7pr3n1$fjk6@forums.borland.com> X-Deja-AN: 516099410 References: <7pdvau$17b7@forums.borland.com> <uiu6d72dh.fsf@sds.no> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language