Пример #1
0
 private static void deleteFile(File file)
 {
     if (file.exists() && !file.delete())
     {
         throw new IOException("Could not delete file: " + file.getCanonicalPath());
     }
 }