This commit is contained in:
Илья Федотов 2023-12-29 10:31:12 +04:00
parent 1738e864aa
commit d91680b64a

View File

@ -76,7 +76,7 @@ namespace SelfPropelledArtilleryUnit.Basic
}
if (data.Length == 0)
throw new ArgumentException("Нет данных для сохранения");
string toWrite = $"ArmoredTransportsStorage{Environment.NewLine}{data}";
string toWrite = $"UnitStorage{Environment.NewLine}{data}";
var strs = toWrite.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
using (StreamWriter sw = new(filename))
{