How I can add text in my file but without overwriting the old text. I use the module fs (node js)
I tried this code but it doesn't work.
fs.writeFileSync("file.txt", 'Text', "UTF-8",{'flags': 'w+'});
any suggestion and Thanks.
See Question&Answers more detail:os