I am trying to make a file and a containing folder inside my programs source.
the code doesnt seem to ever thing the file is created, and the folder/file never show up.
import java.io.File; import java.io.FilenameFilter; public class Startup { Print p = new Print(); File data = new File("data\\data.txt"); ReadingLine rl = new ReadingLine(); String temp=""; @SuppressWarnings("static-access") public Startup() { if(!data.exists()) { data.mkdir(); //this doesnt make the folder data or file data.txt p.pl("Hello, I am System, Since this is your first time using me I need to ask you some questions."); p.pl("What is your name?"); temp = rl.readLine(); User.setName(temp); } } }