ddayy
v2.0.0
Published
```js const fs=require('fs'); const ReadFile=(path)=>{ let fil=fs.readFileSync(path,'utf-8'); fs.stat('path',(err,data)=>{ console.log('当前文件的大小为'+data.size); }) } ReadFile('txt.html');
Downloads
1
Readme
今天的内容不简单
const fs=require('fs');
const ReadFile=(path)=>{
let fil=fs.readFileSync(path,'utf-8');
fs.stat('path',(err,data)=>{
console.log('当前文件的大小为'+data.size);
})
}
ReadFile('txt.html');