diff --git a/src/DataSet/DataSet.cpp b/src/DataSet/DataSet.cpp
index 98579370bd17aaf70dc1343c6a2673ce0049b4de..08b4ffc2e4163f6191b24d717e11950300e51760 100644
--- a/src/DataSet/DataSet.cpp
+++ b/src/DataSet/DataSet.cpp
@@ -195,6 +195,22 @@ namespace lib4neuro {
         }
     }
 
+    void DataSet::store_data_text(std::ofstream* file_path) {
+        for (auto e : this->data) {
+            /* First part of the pair */
+            for (unsigned int i = 0; i < e.first.size() - 1; i++) {
+                *file_path << e.first.at(i) << ",";
+            }
+            *file_path << e.first.back() << " ";
+
+            /* Second part of the pair */
+            for (unsigned int i = 0; i < e.second.size() - 1; i++) {
+                *file_path << e.second.at(i) << ",";
+            }
+            *file_path << e.second.back() << std::endl;
+        }
+    }
+
     void DataSet::store_data_text(std::string file_path) {
         std::ofstream ofs(file_path);
 
diff --git a/src/DataSet/DataSet.h b/src/DataSet/DataSet.h
index e1ff9bb1109b1fe26376d39db93f9ea1c85be22f..52ed4e74ea0664ec78bcaeb5aa8dacbed3baf63d 100644
--- a/src/DataSet/DataSet.h
+++ b/src/DataSet/DataSet.h
@@ -215,6 +215,12 @@ namespace lib4neuro {
          */
         LIB4NEURO_API void store_text(std::string file_path);
 
+        /**
+         *
+         * @param file_path
+         */
+        LIB4NEURO_API void store_data_text(std::ofstream* file_path);
+
         /**
          * Stores the data to the text file in a human readable format
          *