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
but don't that gave me a seg fault. Can anyone clarify this for me?Code:while(!feof(file))
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
but don't that gave me a seg fault. Can anyone clarify this for me?Code:while(!feof(file))