Skip to content

Instantly share code, notes, and snippets.

@ajLapid718
Created June 10, 2019 13:54
Show Gist options
  • Save ajLapid718/7ce3a40354709935d721ff66e479d4bb to your computer and use it in GitHub Desktop.
Save ajLapid718/7ce3a40354709935d721ff66e479d4bb to your computer and use it in GitHub Desktop.
Develop a program that uses Node's fs library to manipulate local files

Node

Develop a program that uses Node's fs library to manipulate local files.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment