We are getting many requests on this list, like that below, which are really questions about Ruby and not specific to Watir.

Ruby is a general purpose scripting language and there are a lot more people available to answer such general questions on the [EMAIL PROTECTED] mailing list.

Such questions are also welcome here, but if your question is not getting answered you may want to ask on the other list.

For information on how to subscribe to this list, see http://www.ruby-lang.org/en/20020104.html

Bret

At 12:39 AM 8/29/2005, [EMAIL PROTECTED] wrote:
Hello all,

I'm new to Watirr (and Ruby), so forgive me if the question is rather simplistic...

What I'd like to do, is to have a configuration file (eg. config.txt), which would have a number of key/value pairs, such as "UserName=user", which would be read by a test script to, for example, log into a page. Hence, what I need, is a method to read each line in a given file; strip off the comments (if exist; denoted by #); find the pair based on the key (ie. UserName) and get the value (ie. user) and store it in a variable.

Any help would be greatly appreciated.

Regards

Leon

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to