作法其實很簡單,就把Readline 的input 從標準輸入(Standard Input)換成我們的檔案讀取資料流就可以。 完整做法如下:. var fs = require('fs'); var ...
確定! 回上一頁