![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
first, just to make sure, you have the class java.util.Properties also check http://java.sun.com/products//jdk/1.2/docs/api/java/lang/System.html#getProperties() for / or \ there is the property file.separator anout finding files in the classpath ... i have to think this should work : ...Rickard �berg deserves the credit for this technique Erez Katz
> I have an application which reads in different properties from an INI file. However when I move the application to another platform, the directory name for the INI file needs to be changed. > For example, in Windows I would have > RandomAccessFile raf = new RandomAccessFile("c:\app\hello.ini", "r"); > and on Unix it will become > RandomAccessFile raf = new RandomAccessFile("/usr/local/app/hello.ini", "r");
> Thanks for your help!
Replies:
|
Sponsored Links
|