Synchronous text file reading in browser [duplicate] (stackoverflow.com)stack
25 points by lulook in stackoverflow.com · 1h ago · stack comments
I am new to javascript so I might misunderstand some details. Problem is that I have a javascript function for reading text files, in for nodejs it is implemenetd this way function cat (path) { return require('fs').readFileSync(path, 'utf-8') } To make it work in browser I added…
filed under javascriptasynchronous