Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Visual Basic

Visual Basic Visual Basic Discussion

Reply
 
Thread Tools Display Modes
Old 09-16-2007, 11:54 AM   #1 (permalink)
Forum Expert
 
Kenko's Avatar
 
Join Date: Dec 2004
Location: Land of the Poor
Posts: 1,828
Send a message via MSN to Kenko
Thumbs up [vb05] searching files for specific lines.

Say you have a file like this:

Code:
50332122,"Urza's Tower",,Uncommon,AQ
50332123,"Wall of Spears",323/350,Uncommon,AQ
50332124,"Weakstone",,Uncommon,AQ
50332125,"Xenic Poltergeist",,Uncommon,AQ
(but of course, much larger, like 10k lines long)

and you have to search for one of the quoted names (for e.g "Urza's Tower") each time you loop in a considerably big loop (like, 400 times)

is there a non-sequential way to find the sentence which contains Urza's Tower?

the goal would be obtaining the code, in Urza's Tower case, 50332122.

so you loop searching for names, different each time, and getting the codes for them in case you find them..

is there an api or soemthing?

thanks for your time
Kenko is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5