import java.io.*;
class Writer1 {
public static void main(
String[] args) {
try { // warning: exceptions possible
boolean newFile = false;
File file = new File("C:\fileWrite1.txt");System.out.println(file.exists()); // look for a real file
newFile = file.createNewFile(); // maybe create a file!
System.out.println(newFile); // already there?
System.out.println(file.exists()); // look again
System.out.println(file.getPath());
} catch (IOException e) {
}
}
}
why it doesnot create file at C:\ drive