代码如下:
文件后缀写错,将.tex改成.txt,,还有.后面添加 / 即可。
data.toString(),将二进制数据转成字符
node.js---读取文件报错 underined错误
原文:https://www.cnblogs.com/technicist/p/12685854.html