#include "fileutils.h" namespace FileUtils{ void ensureAppDataFolderExists(){ QDir folder(appDataPath); if (!folder.exists()){ folder.mkpath("."); } } bool saveInstruction(int nr, Instruction instruction){ ensureAppDataFolderExists(); QString filename = appDataPath + QString::fromStdString(std::to_string(nr)) +".html"; QFile file(filename); if (file.open(QIODevice::WriteOnly)){ QTextStream stream(&file); stream<