GoConqr has a new look! Let us know what you think.

Module 20 of 22 · Media

NE-4.Read from console to a file

Kostas Diakogiannis

NE-4.Read from console to a file

NE-4. Read from a console, write to a file

Well done, now we will make a bit of combination of working with the filesystem, and working with node.js process arguments. 

So what you will be asked to do, is write a script that when executed from node.js command line interface, accepts a process argument (more than three if it is more than one words), grabs the text after the `node index.js`  and appends it into a file. See the execution example above.

Put every new text in a new line if you can as a small bonus.

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?