diff --git a/src/level_set/redistancing_Sussman/HelpFunctions.hpp b/src/level_set/redistancing_Sussman/HelpFunctions.hpp
index bef0601391cca65739ab1b16267a198257e1452d..634669736977f29377fe836a89b4851c0dc16285 100644
--- a/src/level_set/redistancing_Sussman/HelpFunctions.hpp
+++ b/src/level_set/redistancing_Sussman/HelpFunctions.hpp
@@ -75,7 +75,7 @@ bool isApproxEqual(T val1, T val2, T tolerance)
 template <typename T>
 void append_value_to_textfile(std::string & textfile, T value)
 {
-	std::ofstream out(textfile);
+	std::ofstream out(textfile, std::ios_base::app);
 	out << value;
 }