If I have a csv file that contains
a,z
b,y
c,x
d,w
.,.
.,.
.,.
y,b
z,a
How to read these data and store the alphabet before the comma in an array, and the alphabet after the comma in another array. such as [a,b,c,d,e,....][z,y,x,w,....]
Thank you.
What I have tried:
I used fopen("filename", "r"), and fgetc() to get the data, but it didn't work.