File getting created in bin folder instead of project folder

2015-02-08 Thread Hyder Hashmi
Hi All, When I execute the following code in my project folder, it creates the file in my current folder(project folder). import java.io.File; public class CreateFile{ File f = null; try{ f = new File("test.txt"); bool = f.createNewFile(); System.out.println

Need Help!

2015-01-28 Thread Hyder Hashmi
Hi, I am working on a small project and need your help in this. I have a java program in which I read and write in a file that is located in the current folder. Now I have written a few servlets and trying to use the previous code along with servlets. Tomcat is searching for the file in its b