I am creating a program when ran searches through the current directory for all files ending in .csv and then imports the data into a vector. I am struggling with getting the data into variables any help would be greatly appreciated. Below is what I have so far.
why? The data in the struct is by column/field. You can put the commas back when you write it back out if you need to write a csv again. They are implicitly stored already.
I get that, you need to read them (even if used as a delimiter in the reading) to get it into the struct as well. My point was, I think you may be able to avoid storing them directly as you know where they go. Not sure, but think it over.