get result and write to file node
const fs = require('fs');
fs.writeFileSync( '/myData.json', JSON.stringify(myData) );
get result and write to file node
const fs = require('fs');
fs.writeFileSync( '/myData.json', JSON.stringify(myData) );
write files in Node.js
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);
}
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us