Java File Path Delete delFile(String filePath, String fileName)

Here you can find the source of delFile(String filePath, String fileName)

Description

del File

License

Apache License

Declaration

public static void delFile(String filePath, String fileName) 

Method Source Code


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

import java.io.File;

public class Main {
    public static void delFile(String filePath, String fileName) {

        try {//from   www . j  a  va 2  s  .  c  o  m
            File file = new File(filePath + fileName);
            file.delete();
        } catch (Exception e) {
            System.err.println("delete File error");
            e.printStackTrace();
        }
    }
}

Related

  1. deleteTempDataFile(String dataFilePath)
  2. deleteTempFile(String sourceFilePath)
  3. deleteTree(final File path)
  4. deleteWallpaper(String file_name, Map dimmensions, String basepath, List resolution_directories)
  5. delFile(String filePath)
  6. delFile(String filePathAndName)
  7. delFile(String filePathAndName)
  8. delFile(String filePathAndName)
  9. delFile(String filePathAndName)