Why do I get a different result from these two operations?


Code:
Open sTxtFile For Input As iFile
        frmMain.txtMandates.Text = Trim(Input(LOF(iFile), iFile))
Close #iFile
    
Open sTxtFile For Input As iFile
     Do While Not EOF(iFile)
         Line Input #iFile, sTemp
         lCount = lCount + 1
     Loop
Close #iFile
Gives 297 and is correct, but

Code:
lCount = SendMessage(ByVal frmMain.txtMandates.hwnd, EM_GETLINECOUNT, 0, 0)
Gives me 298.

I would prefer to use the API call on the text box to do this, but if this is inaccurate I can't.

Regards