Bookmark Topic Watch Topic
  • New Topic

Reading a text file by storing in hashmap

 
kirankkmm kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
how to read all the attributes in a text,storing in hashmap by checking the condition for every attributes .ex -dn: uid=22,ou=aa,dc=ool

ex:- sn should be string
userpassword should be generate with logic
mail should be conditon.
uid should be number and string


below is the file
//user.txt

dn: uid=br4805, ou=People, dc=access,dc=abc,dc=com
givenName: Carl
sn: Getman
userPassword:: e1NIQX1nRXRQZjAxRmJVZ1c3UjZDRkQzM1JVK1QzejA9
mail: kiran.kumar52@gmail.com
displayName: br4805
uid: br4805
c: USA
cn: Carl Getman

please let me know how to do and suggest me if you have any idea.

thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question multiple times. Let's continue the discussion in this duplicate thread, where you have an answer already.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!