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

Posted on Aug 18, 2021 9:18 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Read a CSV file with Javascript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.