From 5769893111b352779bbebe0a8d245beb2c337483 Mon Sep 17 00:00:00 2001 From: yoshimasataira Date: Sat, 25 Sep 2021 13:06:58 +0000 Subject: [PATCH] =?UTF-8?q?Sync=E8=BF=BD=E5=8A=A0?= 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 ef41a4cd..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'); }