Skip to content

Instantly share code, notes, and snippets.

@sreepurnajasti
Created March 13, 2017 09:33
Show Gist options
  • Save sreepurnajasti/140b221b746555da2aadc46f3bb718d8 to your computer and use it in GitHub Desktop.
Save sreepurnajasti/140b221b746555da2aadc46f3bb718d8 to your computer and use it in GitHub Desktop.
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