Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding string in TXT file
Message
From
25/12/2022 08:00:42
 
 
To
25/12/2022 07:07:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01685605
Message ID:
01685610
Views:
56
On slow computers when I issue FILETOSTR(), then some proccesing and then STRTOFILE() back, sometimes error file access denied occurs. I don't want to slow down program while proccesing because of few users :-(. So, I'm looking for a possible different solution.

May I ask what's wrong with using FileToStr()?

>Line lenght can be more than 254 bytes and before the time of proccesing I don't know lenght of a specific line.
>
>You can use FGET to read text file line by line and compare
>
>>Any ideas how to find string between two unique strings in TXT file without using FILETOSTR command?
>>For example I need to find string
>>
>>aa
>>bb
>>cc
>>
>>in TXT file
>>
>>1111
>>2222
>>3333
>>first string:aa
>>bb
>>cc
>>second string:fsdfsdfs
>>444
>>555
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform