To read the file (text, HTML, JSON, etc) from the system or server using node js, you can do it in two ways first asynchronous (non-blocking) and second synchronous (blocking). You can read a file in NodeJS using fs the module,
Best Programming Guides with Examples