>Hi Dmitry,
>
>According to VFP help "Maximum # of characters per character string or memory variable is 16,777,184 bytes". I think that that would be the limit for FileToStr().
>If your tokens come in paires than you may use STREXTRACT().
>
>>Is there a limit on the size of the file I can get into a char variable using function FileToStr()?
>>
>>I just tried a fairly large file (almost 200K text file) and it worked. But I was wondering if I might run out of some "limitation" if file is much bigger.
>>
>>Also, I have to parse the retrieved variable based on many different tokens in the text file. For example, the file may have tokens like $START TEXT$... some text.. $END TEXT$. $REQUESTOR.. Requestor name.. and so on.
>>
>>I can only think of function AT() to parse the string. Any other suggestions would be appreciated.
>>
>>TIA
I've read files much larger than 16MB into a character variable. But it was pretty slow with all the disk thrashing going on.