I have a CSV file in my local folder. I would like to read it, remove a column, and replace the file in the same folder.
Actual sample data:
ID,EMAIL,FIRSTNAME,LASTNAME
99999,TestEmail@fakeemail.com,TEST_FNAME,TEST_LNAME
33333,TestEmail@fakeemail.com,TEST_FNAME,TEST_LNAME
Expected data from the sample data:
ID,EMAIL,FIRSTNAME
99999,TestEmail@fakeemail.com,TEST_FNAME
33333,TestEmail@fakeemail.com,TEST_FNAME
In this case, I would like to remove the column LASTNAME
. Can it be done effectively in Java?