This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Properties file design question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Properties file design question" Watch "Properties file design question" New topic

Properties file design question

Ryan Jimmy

Joined: Mar 18, 2012
Posts: 4

For working with multiple input files say for example Test.txt,Test1.txt,Test2.txt should I need multiple property files or is it possible to configure in the same property file "sampleprops.xml". If I have to read multiple input files how to differentiate between them (with filenames)?
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

It's entirely up to you whether you centralize your properties in a single properties file or whether you have one properties file for each input file you want to describe.

And yes, in most systems the easiest way to refer to a file is by its name. However your system may or may not follow that pattern; again, it's up to you to figure that out.

That may sound very vague, but consider the fact that all we know about your system is that it uses files.
I agree. Here's the link:
subject: Properties file design question
Similar Threads
Problem reading a file
Vector input .txt
Restrict file type in Input type="File"
Allowing "multiple" file uploads
Read .txt file n append lines using shell script