>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.
Before trying to optimize this, I would do some speed tests to see where the bottlenecks are. Perhaps the profiler can help you to tell whether the speed problem is in opening and closing the files, or rather in the comparison.
OTOH, I think that in native VFP there is no faster alternative to the "$" operator.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)