Solved

Read multiple values from dynamic properties file in java

Posted on 2008-10-15
1
2,593 Views
Last Modified: 2013-11-23
I have a properties file which contains the following fields:

Tag1=[URL]
TagValue1=www.abc.com
Tag2=[Study Code]
TagValue2=ABC 123
....
What i need to accomplish is that if one of the tags in square brackets, such as [Tag1], the value in the will be replaced with the value specified after the equal sign.  If the value was not specified, then no modification to the copied collection title will be performed. Number of tags specified in properties can change so i need to make this dynamic. Basically, the properties file is dynamic and number of tags specified along with their values can change. How can i accomplish this task in Java?
0
Comment
Question by:CalmSoul
1 Comment
 
LVL 6

Accepted Solution

by:
javaexperto earned 500 total points
ID: 22736640
well lets see, what initials values have the tags in the left side? for example:
Tag1=[URL]
do you want to assign String URL to the variable Tag1?
what when you don't have [] like:
TagValue2=ABC 123
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
triangle challenge 4 77
JAVA part two 5 40
Securing Jmx Console and web console 2 46
compre toata in where clue oracle 4 41
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now