so i have a while(!feof) loop set up in my program but i keep getting seg faults because for some reason my program keeps scaning (im scaning with an fscanf btw) off the end of the file. . . i tried scaning 2 or 3 of the data and it runs perfectly, i just cant get my program to stop scanning. . . any suggestions?
EDIT: like is there a way to put an EOF character at the end of my text file im scanning from?