Firstly I apologize because there are many posts asking similar questions, but I've read over all that I could find, and it appears to me that my logic should be correct. This leads me to believe there is something I'm missing in the execution. My suspicion is that perhaps I'm using fseek incorrectly, but I've been scraping my brain over this for hours. If you could spot anything obvious that I'm doing wrong here and could point me in an appropriate direction, it would be much appreciated! Thanks in advance!
[code removed per academic honesty guidelines]