1.普通读写
const fs = require('fs')
let fd = fs.openSync('hello.txt', 'a')
fs.writeSync(fd, '见天12313')
fs.closeSync(fd)
2.流式读写

可写流

可读流

流式读写
1.普通读写
const fs = require('fs')
let fd = fs.openSync('hello.txt', 'a')
fs.writeSync(fd, '见天12313')
fs.closeSync(fd)
2.流式读写