How to add data to the end of a file in Node.js?
Originally Published Here ๐!
To add to the end or append data to a file in Node.js, you can use the appendFile() asynchronous function from the fs (filesystem) module.
/*๐ฅ Append data to a file ๐ฅ */
fs.appendFile("file.txt", "Hello World!", "utf-8...
melvingeorge-me.hashnode.dev2 min read