i want to scan the line "Ryan, Elizabeth 62" with fscanf like this
fscanf(file_ptr, "%s %d", name[i], &age[i]);
but fscanf takes the comma as a flag to stop scanning the name.How can i succeed?
thx
i want to scan the line "Ryan, Elizabeth 62" with fscanf like this
fscanf(file_ptr, "%s %d", name[i], &age[i]);
but fscanf takes the comma as a flag to stop scanning the name.How can i succeed?
thx