Reading Files in NodeJS
When I first needed to read some files in node I just assumed they would fit in memory. A few 1000 lines is easy: const recordString = fs.readFileSync(filename, ‘utf8’);const recordStrings = recordString.split(“\n”); But then I needed to read in a … Continued