I want to read this
zeyad,aar,eee,100,sss,55,science
toto,art,bb,100,ss,55,drawing
from a file then store it in a structure of books.title,books.publisher etc,, as shown below
Can Somebody tell me how to not read the commas and just store string in its place? what I tried is using %*C between each string but it does not work.
while (!feof(pBook))
{
fscanf(pBook,"%s%*c%s%*c%s%*c%s%*c%s%*c%d%*c%s",
books[z].Title,books[z].Author,books[z].Publisher,books[z].ISBN,books[z].DOP,
&books[z].Copies,books[z].Category);
fscanf(pBook,"\n");
z++;
}
fclose(pBook);