>>>>>Add an optional parameter that will allow you to determine the character or characters that break up each line.
>>>>
>>>>Think about using the Vbscript.RegExp object to build a Matches collection rather than ALINES().
>>>
>>>I am not familiar with Vbscript.RegExp. Can you elaborate? Thanx.
>>
>>Vbscript.RegExp is a regular expression parser that can create collections of matches of regular expressions. It's vastly more involved than a single message could summarize - go to the MS WSH site referenced in my signature block and follow the links for the WSH Tutorial - there are several detailed articles on theregular expression parser there.
>
>Ok, I'll check that out. Thanks for the info.
A realy simple example:
oRegExp = CREATEOBJ('Vbscript.RegExp')
oRegExp.Global = .T.
oRegExp.Pattern = "[^\n\r]*\r"
oMatches = oRegExp.Execute(FILETOSTR("temp.txt"))
FOR EACH match in oMatches
? match.value
ENDFOR