It is important to make sure you understand the power of node.js outside of just serving applications.
For this assignment, you'll be creating a program that can read from multiple files and writes a new file using that data. Below are detailed instructions for your program:
-
Read in a file, named "people.json", which contains a list of people.
-
Read in another file, named "people2.json", which contains another list of people.
-
After both of these files have been read, write a new file called "peopleComplete.txt" which contains a sorted list of all the people from the first two files.
Bonus:
- Read in the files from a people directory, and merge all of the files in the directory into a "peopleComplete.json" file Read about fs