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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…