Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #4018

Reading a properties file so that keys can be retrieved in order

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!v31g2000vbs.googlegroups.com!not-for-mail
From "laredotornado@zipmail.com" <laredotornado@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Reading a properties file so that keys can be retrieved in order
Date Thu, 12 May 2011 12:53:59 -0700 (PDT)
Organization http://groups.google.com
Lines 14
Message-ID <c12651b9-38b4-4604-9084-4bfd2aa0ba86@v31g2000vbs.googlegroups.com> (permalink)
NNTP-Posting-Host 12.35.97.2
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1305230070 13056 127.0.0.1 (12 May 2011 19:54:30 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 12 May 2011 19:54:30 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info v31g2000vbs.googlegroups.com; posting-host=12.35.97.2; posting-account=siV97QoAAACYFQde4xADFFFlMTK0JZ44
User-Agent G2/1.0
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4018

Show key headers only | View raw


Hi,

I'm using Java 1.6.  Let's say I have a properties file ...

a=1
b=2
c=3
...

How can i read the properties file in Java such that when I retrieve
the key set, the iterator structure would return the keys in the order
they are found in the file (in the above example, "a", "b", "c")?

Thanks, - Dave

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Reading a properties file so that keys can be retrieved in order "laredotornado@zipmail.com" <laredotornado@gmail.com> - 2011-05-12 12:53 -0700
  Re: Reading a properties file so that keys can be retrieved in order Lew <noone@lewscanon.com> - 2011-05-12 16:14 -0400
    Re: Reading a properties file so that keys can be retrieved in order Lew <noone@lewscanon.com> - 2011-05-12 21:13 -0400

csiph-web