I want to be able to make a loop that reads line by line, then captures the digits in the beginning of each line into an int array, and the characters in a 2d character array. I thought I could have a loops like,
while (fscanf(file, "%d %c %c %c", &num, &f, &e, &h)==4){}
but that is if C could read strings. How can I read each line?