How do I give absolute path to the properties file.
autoamtion_environment_properties = new Properties();
InputStream iStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(("C:\\automation_environment.properties"));
This is giving a null pointer exception.
If I have this file in project root folder it works, but I need to access it from outside. Any idea what needs to be done?
Thanks.
Why not use a FileInputStream instead of all that crazy Thread stuff?
http://docs.oracle.com/javase/6/docs/api/java/io/FileInputStream.html