Skip to content

Instantly share code, notes, and snippets.

@mye-creator
Last active November 27, 2020 14:12
Show Gist options
  • Save mye-creator/2dbb9e65e9777449f0fec7bf1c454d98 to your computer and use it in GitHub Desktop.
Save mye-creator/2dbb9e65e9777449f0fec7bf1c454d98 to your computer and use it in GitHub Desktop.
A node.js running readFile function
fs.readFile("file_location", "text_encoding", function(error, content) {
// some if statements, and else statements for function so the code can let do something if error appears
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment