Accessing properties file information

I want to configure some information in properties file.Pls let me know the process for that.
[107 byte] By [Mr.Rama] at [2007-10-3 4:55:58]
# 1
java.util.Properties
cotton.ma at 2007-7-14 23:01:10 > top of Java-index,Java Essentials,Java Programming...
# 2
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
cotton.ma at 2007-7-14 23:01:10 > top of Java-index,Java Essentials,Java Programming...
# 3

Heres sample program to read the properties file.

public class Foo {

public static void main(String[] args){

try{

File f = new File(args[0]);

Properties prop = new Properties();

prop.load(new FileInputStream(f));

String property1 = prop.getProperty("property1");

System.out.println(property1);

}catch(FileNotFoundException e){

e.printStackTrace();

}catch(IOException e){

e.printStackTrace();

}

}

}

lupansanseia at 2007-7-14 23:01:10 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks for information.I did like this.PropertyResourceBundle pFile = (PropertyResourceBundle) ResourceBundle.getBundle("PropertiesFileName");String info = (String)pFile.handleGetObject("prop1");
Mr.Rama at 2007-7-14 23:01:10 > top of Java-index,Java Essentials,Java Programming...