📜  在打字稿代码示例中写入文件

📅  最后修改于: 2022-03-11 14:48:27.205000             🧑  作者: Mango

代码示例1
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");
}
})