while(!feof(fp)) - do not use feof to control loop, read FAQ http://faq.cprogramming.com/cgi-bin/...&id=1043284351
while(!feof(fp)) - do not use feof to control loop, read FAQ http://faq.cprogramming.com/cgi-bin/...&id=1043284351
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler