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

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 2011-05-12 12:53 -0700
Organization http://groups.google.com
Message-ID <c12651b9-38b4-4604-9084-4bfd2aa0ba86@v31g2000vbs.googlegroups.com> (permalink)

Show all headers | 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