Exemplo n.º 1
0
 /// <summary>
 /// Сохраняем запись
 /// </summary>
 void SaveRecord(string saveRecord)
 {
     lock (lockerSave)
     {
         File.AppendAllText(namefile, VRX.Utf8ToWin1251(saveRecord), Encoding.GetEncoding("windows-1251"));
     }
 }
Exemplo n.º 2
0
 /// <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"));
     }
 }