]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/CDMUtilities.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / CDMUtilities.cpp
index d67ec36f54feb879c81fdbbda2040ee7caaebc98..cc64ee3e96acfa6376010b08e7adc64afc5b29bd 100644 (file)
@@ -373,6 +373,19 @@ namespace CDMUtilities
     return res;
   }
 
+  bool writeFile(const std::string& file_path, const std::string& st)
+  {
+    std::ofstream file(file_path.c_str());
+    if (file.is_open())
+      {
+        file << st;
+        file.close();
+        return true;
+      }
+    return false;
+
+  }
+
   CMLFile readCMLFile(const std::string& file_path)
   {
     CMLFile res;
@@ -523,6 +536,8 @@ namespace CDMUtilities
     return false;
   }
 
+
+
   void
   normalizeStr(std::string& st)
   {