From c3b8dea0be2151dbf75cc0ddea7c3ff6ae1c079c Mon Sep 17 00:00:00 2001 From: Nm0802 <86652457+Nm0802@users.noreply.github.com> Date: Thu, 8 Jul 2021 10:16:26 +0900 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=90=8C=E6=9C=9FI/O=E3=81=AE?= =?UTF-8?q?=E3=82=82=E3=81=AE=E3=81=8B=E3=82=89=E5=90=8C=E6=9C=9FI/O?= =?UTF-8?q?=E3=81=AE=E7=89=A9=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 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'); }