Exemple #1
0
 public void Write(int[,] Arr2)
 {
     try
     {
         File.WriteAllText(FileName, Array2Convert.Arr2ToStr(Arr2));
     }
     catch (Exception)
     {
         throw new Exception("ошибка записи");
     }
 }
Exemple #2
0
 public int[,] Read()
 {
     try
     {
         return(Array2Convert.StrToArr2(File.ReadAllText(FileName)));
     }
     catch (Exception)
     {
         throw new Exception("ошибка чтения");
     }
 }