>>>But when i run this code, an error was occured on MEMLINES()
>>>What is this?
>>
>>Sorry Reza. That line should read:
>>
>>FOR i = 1 TO MEMLINES("cText")
>>>>That may work a little better.
>
>It only return one line of my text file. only first line.
The line should read:
FOR i = 1 TO MEMLINES(cText)
i.e. without quotation marks.