| | |
| | | using Hydro.Core.Model; |
| | | using Hydro.CommonBase; |
| | | using Hydro.Core.Model; |
| | | //using Hydro.HydraulicModel; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | |
| | | string backupFileName = $"{Path.GetFileNameWithoutExtension(InpPath)}_{DateTime.Now:yyyyMMddHHmmss}{Path.GetExtension(InpPath)}"; |
| | | string backupFilePath = Path.Combine(backupFolderPath, backupFileName); |
| | | //if (File.Exists(InpPath)) File.Copy(InpPath, backupFilePath, true); |
| | | FileCopy.Copy(InpPath, backupFilePath, true); |
| | | |
| | | //Global.ClearFileReadOnly(InpPath); |
| | | File.WriteAllText(InpPath, output); |