posted 13 years ago
I tried using the below code ,but i need to store every record in the Hashmap .please go through the below code
I need to store a a number of records in hashmap by reading it from text file.
below is the code .
//testall.ldif
dn: uid=br152, ou=People, dc=acceg,dc=ag,dc=com
displayName: br152
homePhone: 87878
givenName: Nickkk
aigrole: SWC_Brokery
mobile: 888667575
dn: uid=br152g, ou=People, dc=acce,dc=ng,dc=com
displayName: br152g
homePhone: 56565
givenName: Nickfsfsf
aigrole: SWoker
mobile: 343434675
dn: uid=br1, ou=People, dc=achg,dc=aig,dc=com
displayName: br1
homePhone:
givenName: dfdf
aigrole: dfser
mobile: 6575755756
The output should be as below
Please do the needful ,help me to resolve this issue.
thanks in advance