/// <summary> /// Сохраняем запись /// </summary> void SaveRecord(string saveRecord) { lock (lockerSave) { File.AppendAllText(namefile, VRX.Utf8ToWin1251(saveRecord), Encoding.GetEncoding("windows-1251")); } }
/// <summary> /// Сохраняем ошибки /// </summary> static public void SaveError(string saveRecord) { saveRecord = "\n" + saveRecord; lock (lockerSaveError) { File.AppendAllText("vrx_error.txt", VRX.Utf8ToWin1251(saveRecord), Encoding.GetEncoding("windows-1251")); } }