super coomit

This commit is contained in:
kogleee
2023-10-25 12:42:14 +03:00
commit c85ff4093d
72 changed files with 4145 additions and 0 deletions

13
task8/2/app.js Normal file
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); // выводим считанные данные
});

1
task8/2/hello.txt Normal file
View File

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