Search string in File and return value C#

10/25/2014 01:29 IceTrailer#1
Hello guys.


I want to code following to for the MMORPG Nostale (or rather the String files of it).

There is a monster.txt (where the monster strings are)
and there is a monster.dat (where the stats from the monsters are, including string name and VNUM (!))

There are examples for the files I told you.

monster.txt


monster.dat


My plan is to check line by line if the first string of monster.txt is contained in the monster.dat each 25 lines. And if so, I want to return the value to the console output

So my problem is that I already know how to read the first 25 lines to one string (using StringBuilder) and get the value after "VNUM" (this is what I want get returned). But I don't know how to to that with the rest of the files.

My code


I hope you understand and you can help me a bit.

PS: I also speak German! :P
10/25/2014 01:48 snow#2
#moved
10/26/2014 01:28 IceTrailer#3
Solved.

I used lists (dictionary) where I put all the strings and so on.