#include <msp/core/maputils.h>
+#include <msp/datafile/writer.h>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
#include <msp/io/file.h>
package.get_builder().get_logger().log("files", format("Writing %s", fn));
IO::BufferedFile out(fn.str(), IO::M_WRITE);
+ DataFile::Writer writer(out);
for(const auto &kvp: options)
- IO::print(out, "option \"%s\" \"%s\";\n", kvp.second.name, kvp.second.value);
+ writer.write((DataFile::Statement("option"), kvp.second.name, kvp.second.value));
changed = false;
}