File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android 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
Author

Properties file design question

Ryan Jimmy
Greenhorn

Joined: Mar 18, 2012
Posts: 4
All,

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
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

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.
 
Consider Paul's rocket mass heater.
 
subject: Properties file design question
 
It's not a secret anymore!