I would just read the whole file and then let LC truncate the text following the keyword sentence in the usual ways. I bet even with a couple of gigabytes this would not take much time. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html