Creating a File
try {
File file = new File("filename");
// Create file if it does not exist
boolean success = file.createNewFile();
if (success) {
// File did not exist and was created
} else {
// File already exists
}
} catch (IOException e) {
}
Thanks. It helped!
thanx helped a lot
should check for permissions
i WANT TO COMMENT TO CREATING A FILE.