Hi,
I want read property file in my java class.
for this i have written:
try {
Properties property = new Properties();
property .load(new FileInputStream("abc.properties"));
String string = property.getProperty("userName");
} catch (Exception e) {
e.printStackTrace();
}
i have placed my abc.properties file in same package where my java class resides. But i am getting FileNotFound exception.
Please let me know how to give path of property file.
Thanks and Regards