Jar文件中的data# Java - 爪哇娇娃
I*e
1 楼
I have a few classes accessing a "data.txt" file. I want to create a .jar file
and package everything in. However, how do I point to the data.txt file
inside the jar?
If it is outside I can easily use something like
FileWriter fw=new FileWriter("C:\\data.txt");
Now what should I do?
Thanks.
-iCare-
and package everything in. However, how do I point to the data.txt file
inside the jar?
If it is outside I can easily use something like
FileWriter fw=new FileWriter("C:\\data.txt");
Now what should I do?
Thanks.
-iCare-