Created
March 13, 2017 09:33
-
-
Save sreepurnajasti/140b221b746555da2aadc46f3bb718d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var fs = require('fs'); | |
var data = fs.readFileSync('./data.in'); | |
var server = http.createServer(function(req, res) { | |
console.log('connected'); | |
res.end(data); | |
}); | |
server.listen(25000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment