I have this method that reads the file
const fs = require('fs');
const path = require('path');
let arquivo = path.join(__dirname, 'arquivo.txt');
fs.readFile(arquivo, { encoding: 'utf-8' }, function(err, data) {
if (!err) {
// Re...
asked by
02.11.2017 / 12:27