>Is there any way to show progress when scanning a file using low-level functions? I have this code:
>
>Do while not feof(lnHandle)
> .......
>Enddo
>
>It's a very large file so I want to update the _screen.caption or something as it's being scanned. Is there any way to do this?
You can use FSEEK() to find the end of file, and then track your progress throughout your operation:
nFH = FOPEN('C:\MyVeryLargeFile')
nPos = FSEEK(nFH,0,2)
=FSEEK(nFH,0,0)
Yoy can inquire about your position in the file at any time:
nCurPos = FSEEK(nFH,0,1)