public boolean WriteToFile(String data)
    {
        boolean result = false;
        
        try
        {
            //write data to file
            br.write(data);
            br.newLine();
            //set the status flag
            result = true;
        }
        catch(Exception e){}
        
        return result;
    }