Hi all,
public class Test {
public static void main(String... args) throws Exception {
File myDir = new File("test");
// myDir.mkdir();
File myFile = new File(
myDir, "test.txt");
myFile.createNewFile();
}
}
What is the mistake i'm doing here?
It throws me the following exception :
Exception in thread "main" java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at Files.Test.main(Test.java:11)
Thanks,
Jesu