My team is trying to take questions by developers in a CSV and parse it to put into a database. Some developers have commas in their questions.
The format of the CSV is Question,Answer. For example, a row might be `Hi, how are you,good' or 'what is life?,42'
fs.createReadStream(file)
.pipe(createCsvParser())
.on("data", (row) => {
console.log(row);
questionSet.push(row); //appends row to questionSet array
})
.on("end", () => {
console.log("CSV file successfully processed");
});
This is our current code. Thank you for your help