I want to get File from project folder by using \"File class\" , How I can Do that ?
File file=new File(\"x1.txt\");
Just did a quick google search and found that
System.getProperty("user.dir");
returns the current working directory as String. So to get a File out of this, just use
File projectDir = new File(System.getProperty("user.dir"));