private void initializeResultsFile()
    {
        if (trace_flag == false) {
            return;
        }

        // Initialize the results file
        FileWriter fwriter = null;
        FileWriter fwriterFin = null;
        try
        {
            fwriter = new FileWriter(super.get_name(), true);
            fwriterFin = new FileWriter(super.get_name() + "_Fin", true);
        } catch (Exception ex)
        {
            ex.printStackTrace();
            System.out.println(
                    "Unwanted errors while opening file " + super.get_name() +
                    " or " + super.get_name()+"_Fin");
        }

        try
        {
            fwriter.write(
                "User  \t\t Event \t GridletID \t Resource \t GridletStatus \t\t\t Clock\n");
            fwriterFin.write(
                "User  \t\t GridletID \t Resource \t Cost \t CPU time \t Latency\n");


        } catch (Exception ex)
        {
            ex.printStackTrace();
            System.out.println(
                    "Unwanted errors while writing on file " + super.get_name()+
                    " or " + super.get_name()+"_Fin");
        }

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