📜  节点 appendFile 同步 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:14.781000             🧑  作者: Mango

代码示例1
//Name of the file : appendfile-sync.js
//file append operation in nodejs
var fs = require('fs');
var content = "We are Appending this file synchronously using node.js";
fs.appendFileSync('assets/new.txt', content);
console.log("File Appended Successfully");