How to access .properties file outside the current folder?

Hello,I am interested in accessing an .properties file which is located outside of the folder that contains the application. If any one can help me please answer:))Thank you in advance
[212 byte] By [vladshtr] at [2007-9-26 4:08:54]
# 1

In an application, it's dead easy.

Properties props = new Properties();

props.load(InputStream);

where InputStream is a stream from an open file that could be just about anywhere.

The problem is that in an applet, the SecurityManager will prevent you from getting outside your own directory. THAT gets nasty. :)

If you're dealing with an applet, you're going to have to look into security policies and secure certificates, as these are what browsers require before their VMs start granting you the priviliges you need to access other directories. Horrid, and potentially expensive also. :P

Hope that helps!

Martin Hughes

martinhughes at 2007-6-29 13:11:29 > top of Java-index,Desktop,I18N...