forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


finding text and putting the founded txt into a file

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Wed Feb 19, 2003 6:04 pm    Post subject: finding text and putting the founded txt into a file Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Feb 19, 2003 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Feb 20, 2003 1:52 am    Post subject: yup Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group