I don't think that's how you should attack the problem (even if you could do it); instead:
- Use what you have to read in each line
- Then split up that line by the commas to get the pieces that you want.
If strtok
will do the job for #2, you can always convert your string into a char array.