DAY 1 :
Hey folks,
This is my short tutorial on File Modes (write,append)
1)fs.writeSync(fd, buffer[, offset[, length[, position]]])
const fs=require('fs')
// 1.using writeFileSync
fs.writeFileSync('notes.txt','my name is ana')
2)fs.appendFileSync(path, data[, options])
const fs=require('fs')
// //1.using writeFileSync
fs.appendFileSync('notes.txt',',I live in India')
Will continue further in the next tutorial.
Top comments (0)