I put a file inside my Java project file and i want to read it but how can i find the path name with Java.
Here i put it in C driver but i just want to find path by just writing the name of file. Is there a function for it?
FileInputStream fstream1 = new FileInputStream("C:/en-GB.dic");
If the file is inside the jar file generated for your project (or in the classpath used by your project, generally), under the package
com.foo.bar, you can load it usingIf it’s not in the classpath, and you launch the application (using java.exe) from the directory
c:\baz, and the file is underc:\baz\boom\, the you can load it using