How about this..??
You will end up with the list of agent numbers as one String, then the list of IPs as a second String.
1)Create a class(call it propObject) with the member variable's key (string) and values[] (array of strings).
2)Create a hash hap(call it propMap).
3)Scan through the file line by line and if = symbol is encountered store the preceding string as
key.
4)Continue scanning the remaining lines and store the string in each line in to the corresponding
values[] until you encounter the next = symbol
5)If you encounter the next = symbol, stop right there and do the following step.
6)
Put(Key,values[]) in to the propMap.
7)Clear the values of key and values[].
8)Repeat the above 3 steps until you reach the end of the file.
v
Hope this convinces Campbell. Your comments are always welcome.
[ May 17, 2008: Message edited by: Prasad Tamirisa ]