📅  最后修改于: 2022-03-11 14:48:27.205000             🧑  作者: Mango
const fs = require("fs");
let text = "Something you want to write in";
fs.writeFileSync("document.txt", text, function(err){
if(err){
return console.log("error");
}
})