let logs = require('./logs');
const {ipcRenderer} = require('electron');

module.exports.readFiles = function() {
    ipcRenderer.send('main', 'reading logs');
    logs.readFile('anode-0');
    logs.readFile('anode-1');
};

@@ -1,8 +1,32 @@
+let fs = require('fs');%0A
 let logs
@@ -47,16 +47,44 @@
 logs');%0A
+let path = require('path');%0A
 const %7Bi
@@ -155,16 +155,19 @@
 unction(
+dir
 ) %7B%0A    
@@ -216,61 +216,283 @@
     
-log
+f
 s.read
-File('anode-0');%0A    logs.readFile('anode-1'
+dir(path.join(__dirname, '/logs_output'), (err, dir) =%3E %7B%0A        ipcRenderer.send('main', 'number of files: ' + dir.length);%0A        for (i = 0, path; path = dir%5Bi%5D; i++) %7B%0A            // ipcRenderer.send('main', path);%0A            logs.readFile(path)%0A        %7D%0A    %7D
 );%0A%7D

read all logs