how to read csv file and them colum wise edit that file then save in csv format ? in php code if any or js
These seem to be the most popular libraries:
for PHP: https://csv.thephpleague.com/
for JS: https://csv.js.org/
It’s just a text file with a specific, fairly simple syntax, so you can do it manually, but there are that many edge cases with CSV files I would advise using a library for it.
Here is a fairly barebones description of how to do it just using Node’s built in functionality:
Again, there are multiple ways this can screw up, so library is generally best way to go.
1 Like