This commit is contained in:
User1
2023-11-08 14:02:38 +03:00
parent 2123d65584
commit 2e57518d5f
118 changed files with 15715 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
const fs = require('fs');
fs.appendFileSync('hello.txt', 'Привет ми ми ми!');
fs.appendFile('hello.txt', 'Привет МИД!', function (error) {
if (error) throw error; // если возникла ошибка
console.log(
'Запись файла завершена. Содержимое файла:'
);
let data = fs.readFileSync('hello.txt', 'utf8');
console.log(data); // выводим считанные данные
});

View File

@@ -0,0 +1 @@
jajajjaПривет ми ми ми!Привет МИД!