fs.writeFile(html_path, html, function(err) { if(err) console.log(err); console.log("The file was saved!"); });
var save_file = function() { var md_path = config.JUDGE.path + "source/md/problem/" + pid + ".md"; var html_path = config.JUDGE.path + "source/problem/" + pid + ".html"; var html = markdown.post_marked(md_text); fs.writeFile(md_path, md_text, function(err) { if(err) return console.log(err); console.log("The file was saved!"); }); fs.writeFile(html_path, html, function(err) { if(err) return console.log(err); console.log("The file was saved!"); }); }
log.verbose('build/' + configFilename, 'writing out config file: %s', configPath) configs.push(configPath) fs.writeFile(configPath, [prefix, json, ''].join('\n'), findConfigs)
fs.writeFile(md_path, md_text, function(err) { if(err) console.log(err); console.log("The file was saved!"); });
fs.writeFile(md_path, md_text, function(err) { if(err) console.log(err); console.log("The file was saved!"); });
fs.writeFile(md_path, md_text, function(err) { if(err) return console.log(err); console.log("The file was saved!"); });
fs.writeFile(html_path, html, function(err) { if(err) return console.log(err); console.log("The file was saved!"); });
fs.writeFile(html_path, html, function(err) { if(err) console.log(err); console.log("The file was saved!"); });
fs.writeFile(md_path, md_text, function(err) { if(err) console.log(err); console.log("The file was saved!"); });
fs.writeFile(html_path, html, function(err) { if(err) console.log(err); console.log("The file was saved!"); });