G
Guest
I create a jar file with all my classes and my image resources inside.
Package name: my_pack.
Now, I want to put inside jar file (and inside directory my_pack) a TXT file
which I open with this line:
BufferedReader f = new BufferedReader(new
FileReader("my_pack/a_read_only_txt_file.txt"));
but this line always throws an exception (file not found)
What I can do?
Package name: my_pack.
Now, I want to put inside jar file (and inside directory my_pack) a TXT file
which I open with this line:
BufferedReader f = new BufferedReader(new
FileReader("my_pack/a_read_only_txt_file.txt"));
but this line always throws an exception (file not found)
What I can do?