From: Rupa Ruby Date: 2007-09-14T04:17:40+09:00 Subject: Re: How to read values dynamically Gavin Kistner wrote: > On Sep 12, 12:07 pm, Rupa Ruby wrote: >> In ruby, is there any way to read the values from a fileI am actually >> giving the values in the code itself. Is there a way to read the value >> dynamically > > Yes, it is possible. You can either read the file into a string and > parse it to find what you wanted, or you can load the file as ruby > code (if it is) and have the code run. > > If that doesn't answer your question, please provide more details > about what you are trying to do. -- Posted via http://www.ruby-forum.com/.