Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

write files in Node.js

var fs = require('fs');  
var txt = '
' + 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);
            }
      });
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #write #files
ADD COMMENT
Topic
Name
2+2 =