It's not a secret anymore!
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
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: 19739

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
It's not a secret anymore!