your program is not complete by your out_put.,
February 13, 2009 at 12:11 AM
/* complete program is given belows */
import java.io.*;
public class CreateFile1{ public static void main(String[] args) throws IOException{ File f; f=new File("myfile.txt"); if(!f.exists()){ f.createNewFile(); System.out.println("New file \"myfile.txt\" has been created to the current directory"); }else{ System.out.println("your file name is all ready exit. So you change your file name !"); }