Answers for "append text file in nodejs"

3

Append text into a file nodejs

Synchronously

const fs = require('fs');

fs.appendFileSync('message.txt', 'data to append');
Posted by: Guest on March-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language