Read multiple values from dynamic properties file in java

Posted on 2008-10-15
Medium Priority
Last Modified: 2013-11-23
I have a properties file which contains the following fields:

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?
Question by:CalmSoul
1 Comment

Accepted Solution

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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

600 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