var http = require('http'); var fs = require('fs'); http.createServer(function(req, res){ fs.readFile('1.html',function (err, data){ res.writeHead(200, {'Content-Type': 'text/html','Content-Length':data.length}); res.write(data); res.end(); }); }).listen(8000);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)