From 010237b2d73a9a37abcb0a348ab28eac63468a2f Mon Sep 17 00:00:00 2001 From: yosito Date: Sun, 24 Oct 2021 21:44:01 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=9B=9E=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index e5b6b400..e19b1fd3 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'); }