Node.js Discussion Forums

There's no such thing as a stupid question. Ask. Discuss. Learn.

can you help me?

Write a program called newlines.js that uses a single synchronous filesystem operation to read a file and print the number of newlines it contains to the console (stdout). The file to be read in will come in as the 3rd command line argument. An example of a command would be: node newlines.js something.txt

Ghazal Ahm 4 months ago
  • Whitelisted Links