>>>>>Hi Reza,
>>>>>
>>>>>Place its contents in a memo field and then use MLINE()
>>>>>
>>>>>HTH
>>>>>
>>>>>Henry
>>>>Thanks, But i don't want to use from array.
>>>
>>>Reza,
>>>
>>>Not sure why you're talking about an array, but anyway, try something like this.
>>>
>>>cText = FILETOSTR("YourFile.Txt")
>>>_MLINE = 0
>>>FOR i = 1 TO MEMLINES()
>>> ? MLINE(cText,1,_MLINE)
>>>NEXT
>>>
>>>Regards,
>>
>>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.