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

Module 19 of 22 · Media

NE-3. Read/Write from a file to another

Kostas Diakogiannis

NE-3. Read/Write from a file to another

NE-3. Read/Write from one file to another

Now it's your time to put into practice all the little things you have learned!

Create a txt (or doc file) with some content, some text. Write a script that reads the contents of this file and pastes it into another .txt file.

For now just writing, and NOT appending it's fine. Since we don't want to have a duplicated content.

Try to do this the non-blocking node.js way with promisifying the fs module's functions, and use the core path module to locate the files.

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?