How to create a property file in java

Recommended Answers

All 4 Replies

Maybe don't do it at all, just use the existing Preferences class to do it for you

Maybe don't do it at all, just use the existing Preferences class to do it for you

No i want to create a new property file with some attributes

No i want to create a new property file with some attributes

Preferences allows you to define attributes both global and user-specific but unlike Properties it handles the problem of where to store that data in a system-independent way. Still, it's up to you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.