Ð
Size: a a a
Ð
Б
Ð
Б
ИР
V
const fs = require('fs');
const readline = require('readline');
(async() => {
const delay = t => new Promise(r => setTimeout(r, t));
const fileStream = fs.createReadStream('./tmp/1.txt');
fileStream.on('end', async () => console.log('end'));
const rl = readline.createInterface({
input: fileStream,
crlfDelay: Infinity
});
for await (const line of rl) {
await delay(50);
console.log(`Line from file: ${line}`);
}
})();
Б
Б
V
Б
V
V
V
V
Б
V
Б
Б