You need to read this about feof().
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Ezzaral commented: :) +21
Ancient Dragon commented: You are right :) +36
Salem commented: Saying "Noooooooo" to gets() :) +29
tux4life commented: Nice posting, nice advices to the OP :) +2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
jephthah commented: thanks for correcting +6
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
tux4life commented: You've got a point here :) +3
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague