Hi, I am iterating through a text file(property file) and storing the
section headers as items in a List. I want to associate specific
property value pairs( that I plan to put in a HashMap) with each
section header in my List, i guess you waould say its kinda of like a
parent child realtionship. I am looking for some guidance in the right
direction on how to properly do this or is this not the way I should be
thinking of the solution? Please let me know? :)
Thanks
Robert Klemme - 14 Feb 2006 13:35 GMT
> Hi, I am iterating through a text file(property file) and storing the
> section headers as items in a List. I want to associate specific
[quoted text clipped - 3 lines]
> right direction on how to properly do this or is this not the way I
> should be thinking of the solution? Please let me know? :)
From what you write the most natural seems to have a map with section
names as keys and secondary maps as values (these contain the property
info).
robert
Roedy Green - 14 Feb 2006 19:02 GMT
>Hi, I am iterating through a text file(property file) and storing the
>section headers as items in a List. I want to associate specific
[quoted text clipped - 3 lines]
>direction on how to properly do this or is this not the way I should be
>thinking of the solution? Please let me know? :)
have a look at the source code for http:mindprod/products1.html#INI

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.