Created
March 27, 2020 09:19
-
-
Save pprathameshmore/de0174bf086bb702ee1d74635c74e6c2 to your computer and use it in GitHub Desktop.
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
const express = require('express'); | |
const app = express(); | |
const fs = require('fs'); | |
fs.open('sample.txt', 'r+', (err, fd) => { | |
if (err) { | |
throw err; | |
} | |
console.log('File is opened'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment