From e3e9a441bb87bca519a8d8e358face1336cfe8b2 Mon Sep 17 00:00:00 2001 From: Kentaro Kosugi Date: Wed, 30 Mar 2022 00:45:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E6=9B=B8=E3=81=8D=E8=BE=BC=E3=81=BF=E3=82=92=E5=90=8C?= =?UTF-8?q?=E6=9C=9F=E5=87=A6=E7=90=86=E3=81=AB=E5=A4=89=E6=9B=B4?= 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..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', () => {}); }