SyntaxFix
Write A Post
Hire A Developer
Questions
use \r\n combination to append a new line in node js
\r\n
var stream = fs.createWriteStream("udp-stream.log", {'flags': 'a'}); stream.once('open', function(fd) { stream.write(msg+"\r\n"); });