Quote Originally Posted by patrik08
countnr++; so is correct?

if line request is 10 break it...
Yes, but you read only the first line from the file.