Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low level file functions to get the number of lines
Message
De
22/07/1997 19:18:06
 
 
À
22/07/1997 16:58:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041205
Message ID:
00041240
Vues:
29
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. nRead=0 nFileLength=fseek(nFileHandle, 0, 2) =fseek(nFileHandle, 0, 0) && go top ** DO WHILE NOT EOF nRead=nRead+MyReadLine(nFileHandle, ...) && returns lenghts of line SetThermometer(100 * nRead / nFileLength) Winfried
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform