How to append content in a file?

What is appendfile() function? We can also use the fs module to append the content using appendFile function into a file. However, appendFile function will create the file if the file doesn’t exist or append the content into the file, if the file already existed. Let’s create a folder structure […]