diff --git a/app.js b/app.js index e5b6b400..f1565e3b 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,7 @@ const fs = require('fs'); const fileName = './test.txt'; for (let count = 0; count < 30; count++) { - fs.appendFile(fileName, 'おはようございます\n', 'utf8', () => {}); - fs.appendFile(fileName, 'こんにちは\n', 'utf8', () => {}); - fs.appendFile(fileName, 'こんばんは\n', 'utf8', () => {}); + fs.appendFileSync(fileName, 'おはようございます\n', 'utf8', () => {}); + fs.appendFileSync(fileName, 'こんにちは\n', 'utf8', () => {}); + fs.appendFileSync(fileName, 'こんばんは\n', 'utf8', () => {}); }