Well, I've written a name generator that reads from a file; I'm going to be using it in my next game, but you're welcome to have a look at the source code if you like! Just poke the source button below to see it.
Anyway, what happens it that DB will look at each line in sequence, starting from the first. That means, if you want to read the third line, you've got to read the first two beforehand. Really, you should read from the config file right at the start and save everything into arrays or something, rather than read each value from a file every time it's needed.
There probably are ways of going straight to a certain point in a file, but I'm not well-versed enough in file I/O to know what they are.
Hope this helps!
"I am a living, thinking entity who was created in the sea of information."