Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low level file functions to get the number of lines
Message
From
22/07/1997 18:36:13
 
 
To
22/07/1997 18:18:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041205
Message ID:
00041230
Views:
31
>The fastest method is to count the number of characters. If you count the number of lines you always have to read the file twice.
>
>nFileLength=fseek(nFileHandle, 0, 2)
>=fseek(nFileHandle, 0, 0) && go top

That is interesting. So, I may use the number of bytes currently being processed. It may not give a regular thermometer but it will work and up into 100%.

Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform