I am trying to create a rather simple "Webapp" to make processing records easier.
The starting CSV file is as follows:
HeaderA,HeaderB,HeaderC
UserA-first,UserA-last,UserA-Active
UserB-first,UserB-last,UserB-Active
UserC-first,UserC-last,UserC-Active
I would like to take this data and create the following arrays
Var ColumnA = ["HeaderA", "UserA-first", "UserB-first", "UserC-first"];
Var ColumnB = ["HeaderB", "UserA-last", "UserB-last", "UserC-last"];
Var ColumnC = ["HeaderC", "UserA-Active", "UserB-Active", "UserC-Active"];
After I have them in the arrays I feel confident I can iterate through them the way I want.
The problems I am having are:
- How to parse a CSV file that does not have a comma after the third column
- How to do this with straight Javascript (no external libraries)
This is my first question on Stack Overflow so please be gentle with any mistakes I may have made :)