I don't know how to tell the computer to stop reading when the file is done. I was looking around online and one example had
Code:
while(!feof(file))
but don't that gave me a seg fault. Can anyone clarify this for me?