📜  在 Node.js 中编写文件 - Javascript 代码示例

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

代码示例3
var fs = require('fs');  
var txt = '\n' + tkn_psid_id + ':' + assetUrl;
var folderName = '/duplicates/bugging/videobug/' + tkn_psid_id + '.txt';
fs.appendFile(folderName, txt, function (err) {
       if (err) {
                console.log('Append Error');
           } else {
                   console.log('DuplicateFolder' + folder);
            }
      });