Java File Path Delete deleteFile(String path)

Here you can find the source of deleteFile(String path)

Description

delete file

License

Apache License

Parameter

Parameter Description
path a parameter

Declaration

public static void deleteFile(String path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    /**/*from  w w w  .  ja  v a 2 s .co m*/
     * delete file
     * @param path
     */
    public static void deleteFile(String path) {
        File file = new File(path);
        file.deleteOnExit();
    }
}

Related

  1. deleteFile(String path)
  2. deleteFile(String path)
  3. deleteFile(String path)
  4. deleteFile(String path)
  5. deleteFile(String path)
  6. deleteFile(String path)
  7. deleteFile(String path)
  8. deleteFile(String path)
  9. deleteFile(String path)