Welcome aboard! We are happy you are here and wish you good net-raft!
var http = require('http');
var fs = require('fs');
http.createServer(function (req, res) {
fs.appendFile('Hello_world.txt', '\r\nHello all!', function (err) { // save text at the end of text file
if (err) throw err;
res.end("created!");
});
}).listen(3000);
console.log("Listening to Port 3000");
The most helpful NODEJS solutions
get user ipNODEJS Click to see more ... 7.6K 1.7K