Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text search challenge...
Message
From
16/02/2003 21:36:34
 
 
To
16/02/2003 21:25:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00753959
Message ID:
00753964
Views:
35
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform