K
khanhly via JavaKB.com
I need to get data out from a text/properties file which embedded inside a
jar file. Here is the sample code
String filename = "com.config.myfile.resources.loggingKeyList.
properties"
File fn = new File(filename);
System.out.println (fn.exists());
When run, it prints "false". It can not locate the file.
Is there the way that I can open a file embedded inside a jar file?
Thanks
jar file. Here is the sample code
String filename = "com.config.myfile.resources.loggingKeyList.
properties"
File fn = new File(filename);
System.out.println (fn.exists());
When run, it prints "false". It can not locate the file.
Is there the way that I can open a file embedded inside a jar file?
Thanks