i try to avoid fscanf() because this function requires the input to be very precisely defined, and will cause you much headaches if your input (i.e., the files) ever vary from what you expect them to contain
use instead "fgets" to read each line, and something like "strstr" or similar to parse the result