Android Utililty Methods File Content Remove

List of utility methods to do File Content Remove

Description

The list of methods to do File Content Remove are organized into topic(s).

Method

voidemptyFile(String srcFilename)
empty File
File srcFile = new File(srcFilename);
if (!srcFile.exists()) {
    throw new FileNotFoundException("Cannot find the file: "
            + srcFile.getAbsolutePath());
if (!srcFile.canWrite()) {
    throw new IOException("Cannot write the file: "
            + srcFile.getAbsolutePath());
...