摘要: Note.js,用stream读取文件的内容,注意decoder的用法 const fs = require('fs'); var rr = fs.createReadStream('data\\foo.txt'); // Pull off a header delimited by \n\n // use unshift() if we get too much // Call th... 阅读全文
posted @ 2016-05-31 17:23 今夜太冷 阅读(679) 评论(0) 推荐(0) 编辑