whenever i start my node server and type localhost:3000 it is giving me this error Any Help would Be Appreciable : i am new beginner in angular .i am using Visual Studio code tool and i am trying to create a server using nodejs 
i am trying to load my index.html file when a user sends requests to the server my  js code is 


        var http=require('http');
        var fs = require('fs');

        http.createServer(function(req,res){
       fs.read("./public/index.html","UTF-8", function(err,html){

       res.writeHead(200,{'Content-type':'text/html'});
        res.end(html);


        } );
    
  
 


         }).listen(3000);






    TypeError: fd must be a file descriptor
    at Object.fs.read (fs.js:686:11)
    at Server.<anonymous> (E:\NodejsWork\server.js:7:7)
    at Server.emit (events.js:180:13)
    at parserOnIncoming (_http_server.js:642:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)﻿