I am struggling to find a solution for automatically reading and parsing a local csv file in an electron application. When I use 'fs' to open the file, I can't figure out how to pass the contents into the HTML window.
One option is to use a client-side JavaScript FileReader object, but this requires physically dragging and dropping the file after opening the application.
Is there a way for the application to automatically read a local file in the current directory upon opening, and then passing the contents to the HTML for display?
Any help or advice would be greatly appreciated. Thank you.