This email is to be read subject to the disclaimer below.


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

--------------------
NOTICE - This communication contains information which is confidential and the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please delete and destroy all copies and telephone Ernst & Young on 1800 655 717 immediately. If you are the intended recipient of this communication you should not copy, disclose or distribute this communication without the authority of Ernst & Young.

Any views expressed in this Communication are those of the individual sender, except where the sender specifically states them to be the views of Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Liability limited by a scheme approved under Professional Standards Legislation.
--------------------


If this communication is a "commercial electronic message" (as defined in the Spam Act 2003) and you do not wish to receive communications such as this, please forward this communication to [EMAIL PROTECTED]
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to