I need to read a file in my code. It physically resides here:
C:\\eclipseWorkspace\\ProjectA\\src\\com\\company\\somePackage\\MyFile.txt
I
If I have placed i file in a jar file, it only worked if and only if I used
...getResourceAsStream("com/company/somePackage/MyFile.txt")
If I used a File object it never worked. I got also the FileNotFound exception. Now, I stay with the InputStream object.