Trying to sum all interrupts

not able to use fscanf for the file with interrupts