const contentFilePath = "./exercises.json";
function save(content) {
const contentString = JSON.stringify(content, null, 2);
return fs.writeFileSync(contentFilePath, contentString);
}
function load() {
const fileBuffer = fs.readFileSync(contentFilePath, "utf-8");
const contentJson = JSON.parse(fileBuffer);
return contentJson;
}