Touch(fileName + ".new");
{
- CONFIGFILE cf(fileName);
+ CONFIGFILE cf(fileName + ".new");
int e = cf.Error();
//-----------------------------------------------------------------------------
int FILES_STORE::RestoreTariff(TARIFF_DATA * td, const string & tariffName) const
{
-string tariffFileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
-CONFIGFILE conf(tariffFileName);
+string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
+CONFIGFILE conf(fileName);
string str;
td->tariffConf.name = tariffName;
Touch(fileName + ".new");
{
- CONFIGFILE cf(fileName);
+ CONFIGFILE cf(fileName + ".new");
int e = cf.Error();