const http = require('http');
const fs = require('fs');
http.createServer(function (req, res) {
(async () => {
const file = fs.readFileSync('log.txt');
console.log(file.toString())
})();
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write('Node.js says hello!');
res.end();
}).listen(8080);