Read a CSV file with Javascript
Hello,
I would like to be able to read a CSV file from within Javascript. Each line looks like 20201013,237.57,,,
Once read, I would like to be able to place the first two items from each row into an array. Either 2 one dimensional or 1 two dimensional, does not matter. Ultimately the second item in each row will be placed into a numbers spreadsheet based on the first item in each row.
Javascript does not appear to be able to read a file without such things as Node.js and its fs module.
Is Node.js the best approach or is there a better way? Any help pointing me in the right direction will be appreciated.
Regards,
Chris
iMac 27″, macOS 11.4