I want to create a file, but the code below does not create any file.
package InputOutput;
import java.io.*;
public class FinalProject{
private File f;
public File createFile() throws IOException{
f = new File("E:\\Programming\\Class files\\practice\\src\\InputOutput\\helpSystem.txt");
return f;
}
public static void main(String[] args) throws IOException{
FinalProject fp = new FinalProject();
fp.createFile();
}
}
source
share