im writing a program for school that takes a file detailing different statistics of a file. I am trying to get this one function in particular working but i cant seem to fig