Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text search challenge...
Message
De
16/02/2003 21:36:34
 
 
À
16/02/2003 21:25:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00753959
Message ID:
00753964
Vues:
44
I think fgets() is what I was using. I think the trick might be what is the best way to look for the keyword in the line that you read in. Is it atc() or the something like cText1$cText2.

I guess I need a very low level text compare method.



>If you use FileToStr(), this will read the entire file into memory, and indeed be slow, since you need only the first 7 lines. For fast access, you should use LLFF, something like this:
>
>
>MyFile = "SomeFile.txt"
>FileHandle = fopen(MyFile)
>for LineNumber = 1 to 7
>  Line = fgets(FileHandle)
>  * Do something with the line of text
>next
>fclose(FileHandle)
>
>
>HTH,
>
>Hilmar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform