Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 1, 2020 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/6b6ccf0c3682b11c2e1ea8b319bd4cea to your computer and use it in GitHub Desktop.
Save velotiotech/6b6ccf0c3682b11c2e1ea8b319bd4cea to your computer and use it in GitHub Desktop.
NodeJS file read
fs.readFile(filePath, (err, result) => {
if (err) { console.log(err); }
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment