Hi, I have a properties file that I want to load into my program. it is in the same dir as my main(), but I get FileNotFoundException.
Thank you in advance Garandi [ August 03, 2004: Message edited by: Garandi Garandi ]
posted 12 years ago
new FileInputStream("blah") will look for a file named "blah" in the directory where you start the JVM. If blah is mixed in with the classfiles in the same directory as the class that wants to read it, you can say getClass().getResourceAsStream("blah") instead.