Last active
November 27, 2020 14:12
-
-
Save mye-creator/2dbb9e65e9777449f0fec7bf1c454d98 to your computer and use it in GitHub Desktop.
A node.js running readFile function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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