Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * Title:        efa - elektronisches Fahrtenbuch fr Ruderer
 * Copyright:    Copyright (c) 2001-2011 by Nicolas Michael
 * Website:      http://efa.nmichael.de/
 * License:      GNU General Public License v2
 *
 * @author Nicolas Michael
 * @version 2
 */

import java.io.*;

public class Main {
    public static boolean deleteFile(String filename) {
        if (filename == null) {
            return false;
        }
        try {
            File f = new File(filename);
            return f.delete();
        } catch (Exception e) {
            return false;
        }
    }
}