diff --git a/Tank/src/TanksGenericStorage.java b/Tank/src/TanksGenericStorage.java index f133745..7b03c24 100644 --- a/Tank/src/TanksGenericStorage.java +++ b/Tank/src/TanksGenericStorage.java @@ -100,8 +100,9 @@ public class TanksGenericStorage { // Сохранение информации по технике в хранилище в файл public boolean SaveData(String filename) { - if(new File(filename).exists()) + if(new File(filename).exists()) { new File(filename).delete(); + } StringBuilder data = new StringBuilder();