| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed Feb 19, 2003 6:04 pm Post subject: finding text and putting the founded txt into a file |
|
|
hello all
I have been trying to find a way to have vds search thru a txt file and fine some txt then save the txt info to a file..for explamle txt that has to be found is like this:
11 11 22 22
the 11 11 is where it looks for the txt the 22 22 is what i want to be saved to a file...note the spaces inbetween the text...
thanks |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Feb 19, 2003 10:27 pm Post subject: |
|
|
You load your file into a list and then you can use @match() to find the lines which match
your search criteria. When you find a line with a match, then use @item() to extract that line to
a variable, which you can process to your liking. Then put the output into another list - when
you've cycled through your filen, you use 'list savefile' to save your results.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Feb 20, 2003 1:52 am Post subject: yup |
|
|
ok i see what you mean....i never thought of it that way i was making it harder then it should be...
thanks |
|
| Back to top |
|
 |
|