Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1390
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Avoiding INI files |
| Date | 2011-11-26 17:16 -0500 |
| Organization | The Wasteland |
| Message-ID | <nospam-790945.17163426112011@news.aioe.org> (permalink) |
| References | <7f8a9062-a0f8-4d21-b2d2-700d423ee825@h42g2000yqd.googlegroups.com> <24983878.703.1322248944758.JavaMail.geo-discussion-forums@pruu5> <029445d9-a274-47b4-8658-9164601c2ba1@d17g2000yql.googlegroups.com> <jar9ga$7re$1@dont-email.me> <298e6a94-f997-41fb-aba4-dd62b63dbe1b@r9g2000vbw.googlegroups.com> |
In article <298e6a94-f997-41fb-aba4-dd62b63dbe1b@r9g2000vbw.googlegroups.com>, Davej <galt_57@hotmail.com> wrote: > On Nov 26, 12:00 pm, markspace <-@.> wrote: > > On 11/26/2011 8:17 AM, Davej wrote: > > > On Nov 25, 1:22 pm, Lew<lewbl...@gmail.com> wrote: > > >> Davej wrote: > > >>> > > >>> Is the Windows registry the only option? > > >>> > > >>> http://stackoverflow.com/questions/62289/ > > > > >> The only option for what? > > > > > See the subject line -- avoiding .ini files. > > > > I'm still confused. What does the windows registery have to do > > with ini files? > > The windows registry is the official replacement for ini files, but I > don't like the idea of potentially corrupting the registry for a > trivial little program. As noted in the article cited [1], java.util.prefs.Preferences [2] uses the registry on Windows, but it's fairly well behaved and admirably cross-platform. By confining one's activity to Preferences.userRoot() or Preferences.userNodeForPackage(), you can minimize the risk of corruption. This game [3] is a related example. [1] <http://stackoverflow.com/questions/62289/> [2] <http://docs.oracle.com/javase/7/docs/api/java/util/prefs/Preferences.html> [3] <http://robotchase.sourceforge.net/> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-25 10:07 -0800
Re: Avoiding INI files Lew <lewbloch@gmail.com> - 2011-11-25 11:22 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 08:17 -0800
Re: Avoiding INI files markspace <-@.> - 2011-11-26 10:00 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 11:18 -0800
Re: Avoiding INI files "John B. Matthews" <nospam@nospam.invalid> - 2011-11-26 17:16 -0500
Re: Avoiding INI files Lew <lewbloch@gmail.com> - 2011-11-26 11:19 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 15:31 -0800
Re: Avoiding INI files markspace <-@.> - 2011-11-27 04:55 -0800
Re: Avoiding INI files Mayeul <mayeul.marguet@free.fr> - 2011-11-29 12:33 +0100
Re: Avoiding INI files Patricia Shanahan <pats@acm.org> - 2011-11-29 05:02 -0800
Re: Avoiding INI files Mayeul <mayeul.marguet@free.fr> - 2011-11-29 14:17 +0100
Re: Avoiding INI files "John B. Matthews" <nospam@nospam.invalid> - 2011-11-29 11:09 -0500
Re: Avoiding INI files Roedy Green <see_website@mindprod.com.invalid> - 2011-11-25 14:21 -0800
csiph-web