private void initializeResultsFile()
    {
        // Initialize the results file
        FileWriter fwriter = null;
        FileWriter fwriterFin = null;
        FileWriter fwriterDropped = null;

        try
        {
            // overwrite existing file
            fwriter = new FileWriter(super.get_name() + ".csv");
            //fwriterFin = new FileWriter(super.get_name() + "_Fin.csv");
            //fwriterDropped = new FileWriter(super.get_name() + "_DroppedGridlets.csv");
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
            System.out.println("Unwanted errors while opening file "
                + super.get_name() + " or " + super.get_name() + "_Fin.csv");
        }

        try
        {
            fwriter.write("User Name, Event, GridletID, Resource, GridletStatus, Time\n");
            //fwriterFin.write( "User, GridletID, Resource, Cost, CPU time, Latency\n");
            //fwriterDropped.write( "User, GridletID, Status, Time\n");
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
            System.out.println("Unwanted errors while writing on file "
                + super.get_name() + " or " + super.get_name() + "_Fin.csv or "
                + super.get_name() + "_DroppedGridlets.csv");
        }

        try
        {
            fwriter.close();
            //fwriterFin.close();
            //fwriterDropped.close();
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
            System.out.println("Unwanted errors while closing file "
                + super.get_name() + " or " + super.get_name() + "_Fin.csv or "
                + super.get_name() + "_DroppedGridlets.csv");
        }
    }