aspose file tools
The moose likes I/O and Streams and the fly likes read property file and  store it in  hashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "read property file and  store it in  hashMap" Watch "read property file and  store it in  hashMap" New topic
Author

read property file and store it in hashMap

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 462

Hello pals,

I need to read property file and store it in hashMap, any ideas?
Here is an example for my property file :
AGENTS =

AGENT109
AGENT145
AGENT147
AGENT148
AGENT149
AGENT150
AGENT151
AGENT152
AGENT153
AGENT154
AGENT156
AGENT157
AGENT158


AGENTS IPS =

10.150.15.149
10.150.15.118
10.150.15.126
10.150.15.244
10.150.15.106
10.150.15.250
10.150.15.120
10.150.15.122
10.150.15.119
10.150.15.121
10.150.15.223
10.150.15.212
10.150.15.109
10.150.15.186
10.150.15.156


Thanks,
Sherif
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18652
Please don't post the same question in multiple forums - it wastes people's time if they respond without realizing the question has already been answered (or is being answered) elsewhere. Follow up here instead. Thank you.


"I'm not back." - Bill Harding, Twister
 
 
subject: read property file and store it in hashMap
 
Threads others viewed
read property file and store it in hashMap
Creating Dynamic Object
accessing property file in servlet
Using Properties instead of HashMap when dealing with Strings
storing file path in weblogic 8.1
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture