private void btnClear_Click(object sender, EventArgs e) { Ftool.ClearFile(Ftool.GetAplicationDirectory() + "errorLog.txt"); getDataFromLog(); }