• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read property which is conssiting of two values

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I need to read a property File that is having two values :



sample File :

Country : NORWAY , DENMARK

Please let me know how can i read two values from a single property .

Thnaks in advance .

How to read property which is conssiting of two values


Here i am free to use csv files also for this . please let me know whetehr thic can be done either
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the simple question , i got the answer . for others who want to refer :



filename.properties

Name :Ravi Kiran
City :Hyderabad Visakhapatnam

 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll like String.split better than StringTokenizer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic