Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manipulating 'txt' files
Message
 
 
To
23/02/2008 21:03:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01295783
Message ID:
01295785
Views:
13
>Hi.
>I need to open a '.txt' file,
>search information on it, read
>that information and then write
>it back in a 'new txt' file.
>Which is the best way to do this?
>Thanks in advance!

It depends on what is the structure of the file and how big it is. If it's not very big, you can first get the whole file in the string with

lcStr = filetostr('myFile.txt')

Then you may look for your string using AT function and then write back with strtofile() function.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform