Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding string in TXT file
Message
From
25/12/2022 08:44:33
 
 
To
25/12/2022 08:00:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01685605
Message ID:
01685611
Views:
53
If you give a better description of what you really want to achieve, we can help you better.

You don't only want to search a file, you also want to write it back, which is new information. And when you write it back, is it to the same file name, or a new?

Also, please tell us roughly how big the files are.

The more information you give, the better.

>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