regarding properties file

hi all,why we need properties file?how can i use our application?what its advantagethanks in advancedaya
[146 byte] By [dayanandabva] at [2007-10-1 13:13:05]
# 1
You store properties in it that you can use to configure your app. For instance you might store database access parameters such as user and passwrod. You might store the locatinos of files your app uses. Or how many times to retry. Etc., etc., etc.
jverda at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...
# 2
hello,thanks,can u help how can i create properties file,and how can i access that file in java application.help me,,thanks with regardsdaya
dayanandabva at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...
# 3

Read the API for java.util.Properties.

It's just a text file with lines line this: infile=C:/myproject/infile.txt

You populate a Properties object by calling the load() method.

Here's an I/O tutorial in case you don't know how to read from a file: http://java.sun.com/docs/books/tutorial/essential/io/index.html

jverda at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...
# 4
hello,thank very muchi will go throug, if any dought i will ask uthanksdaya
dayanandabva at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...
# 5
You could look at some of the follow for examples http://www.google.co.uk/search?q=java+properties+tutorial
Peter-Lawreya at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...
# 6
hello,it is necessary to set path for propeties file?thanksdaya
dayanandabva at 2007-7-10 16:00:48 > top of Java-index,Desktop,I18N...