Click to See Complete Forum and Search --> : Propery files


keko2005
11-02-2005, 08:07 PM
hey guys. was wondering if someone can help me out as to how property files work for java apps. im writing an application and im gonna have to create a config/property file. but not sure how to do it. i looked online but its a little confusing. if someone can explain how to read the propertys from an xml file, or link me to a real good tutorial i would appreciate it. thanks.

BigDog
11-03-2005, 09:25 AM
well, property files and xml files are different. Property files are real straight forward key/value pairs. http://javaalmanac.com/egs/java.util/pkg.html?l=find has a section of how to use property files.


XML parsing is a little more in depth. Some examples are at http://javaalmanac.com/cgi-bin/search/find.pl?words=xml