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.