readFileSync('file.txt', 'UTF-8'); // split the contents by new line const lines = data.split(/\r?\n/); // print all lines lines.
確定! 回上一頁