regarding properties file
hi all,why we need properties file?how can i use our application?what its advantagethanks in advancedaya
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 >

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
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 >
