Using property files in Java

Java use class Property to assemble a property file. In order to use it, a File class object or FileOutputStream class or FileInputStream class object is required.==(this means the latter two will be read only or write only)==

In order to use it, first call the load() method to load the file or the Stream. ==The steam should not be closed until finish using the file!==

After that, the property file can be easily used pretty much like a hash map and information can be stored or read in the form of key and object.

2017/3/19 18:56