RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[vb05] searching files for specific lines.

Kenko

Page
[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
 
Top