Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileToStr() function
Message
From
27/08/2003 20:06:30
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00824014
Message ID:
00824021
Views:
26
>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform