Sure.

The EOF flag is not turned "on" until after the last character of the file is read, hence, your 'problem'. In short, your WHILE loop is going through one additional iteration accounting for 'count' going to 11 vice 10.

Try
Code:
 
while ( sin )
{

}
This will account for all of the "flags" rather than testing for just EOF, i.e. good, bad, fail, eof.

-Skipper