So currently my netbeans project folders looks like this:
- Block_Breaker <--Project
- build
- dist
- Block_Breaker.jar
- nbproject
- src
- packageONE
- packageTWO
- data.txt
- manifest.mf
- applet.policy
- build.xml
I want to know how can i acces a data.txt file in packageTWO(when i run Block_Breaker through a jar file and not netbeans). Normally if run through netbeans the following code will work:
FileWriter x=new FileWriter("src/packageTWO/data.txt"); PrintWriter pr=new PrintWriter(x); But if i run a jar file that netbeans created it doesnt work.