📜  javascript 将文件转换为数组 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:01:19.035000             🧑  作者: Mango
代码示例1
var fs = require('fs');
var text = fs.readFileSync("./mytext.txt", 'utf-8');
var textByLine = text.split('\n')