This commit is contained in:
MishaBagger
2023-10-25 09:15:21 +03:00
commit b6c10cc93f
9828 changed files with 1446743 additions and 0 deletions

14
11/app.js Normal file
View File

@@ -0,0 +1,14 @@
const fs = require('fs');
let writeableStream = fs.createWriteStream('hello.txt');
writeableStream.write('Привет мир!');
writeableStream.write('Продолжение записи \n');
writeableStream.end('Завершение записи');
let readableStream = fs.createReadStream(
'hello.txt',
'utf8'
);
readableStream.on('data', function (chunk) {
console.log(chunk);
});