I want to start a simple http web server but this isn't working
<pre><code>var http = require("http");
var fs = require("fs");

http.createServer(function(request, response) {
    console.log("User request received");
    response.writeHead(200, {"Content-Type": "Text/plain"});
    fs.createReadStream(process.argv[3]).pipe(response);
    response.end();
}).listen(process.argv[2]);

console.log("Server is running...");
</code></pre>

<p>This program takes the port number and the file path as command line parameters.<br>
When I run it in node, even though I pass the correct command line arguments, the file is not served when accessed from the browser</p>

<p>I don't know where the error is occurring</p>