Java Delete File deleteFile(String fileName)

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

Description

delete File

License

Open Source License

Declaration

public static boolean deleteFile(String fileName) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {

    public static boolean deleteFile(String fileName) {
        if (null == fileName || "".equals(fileName)) {
            return true;
        }/*w w w  .j  a va2s.c om*/

        File f = new File(fileName);
        return f.delete();
    }
}

Related

  1. deleteFile(String filename)
  2. deleteFile(String fileName)
  3. deleteFile(String fileName)
  4. deleteFile(String fileName)
  5. deleteFile(String fileName)
  6. deleteFile(String filename)
  7. deleteFile(String filename)
  8. deleteFile(String FileName)
  9. deleteFile(String fileName)