SyntaxFix
Write A Post
Hire A Developer
Questions
You should check the EOF after reading from file.
fscanf_s // read from file while(condition) // check EOF { fscanf_s // read from file }