From 39cf038913152dfeba354db661325b24bf3fbe01 Mon Sep 17 00:00:00 2001 From: Shoko Kamata Date: Sun, 15 Sep 2024 10:05:37 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=9C=9FI/O=E3=81=B8=E5=A4=89?= =?UTF-8?q?=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 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'); }