package javaapplication1;
import java.io.File;
import java.io.IOException;
public class JavaApplication1 {
public static void main(String[] args) throws IOException {
File file = new File("d://emptyfile.txt");
boolean created = false;
try {
created = file.createNewFile();
} catch (IOException ioe) {
System.out.println(ioe);
}
if (created)
System.out.println("Created");
else
System.out.println("Not Created");
}
}
/*
run:
Created
*/