public boolean CloseFile()
    {
        boolean result = false;
        
        try
        {
            //flush the buffer
            br.flush();
            //close the file
            out.close();
            //set status flag
            result = true;
        }
        catch(Exception e){}
        
        //return status
        return result;
    }