To create an empty file in Node.js: const fs = require('fs'); const filename = 'file.txt'; fs.closeSync(fs.openSync(filename, 'w'));
確定! 回上一頁