[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

creating a StringIO object

Venkat Bagam

10/3/2007 10:37:00 AM

Hi all, can any body tell me how to create a StringIO object from an
existing string object.

my code str = StringIO.new results an error saying that
"uninitialized constant StringIO(NameError)"

What i sthe problem with the above code
--
Posted via http://www.ruby-....

1 Answer

lrlebron@gmail.com

10/4/2007 6:49:00 PM

0

On Oct 3, 5:37 am, Venkat Bagam <bagam_ven...@hotmail.com> wrote:
> Hi all, can any body tell me how to create a StringIO object from an
> existing string object.
>
> my code str = StringIO.new results an error saying that
> "uninitialized constant StringIO(NameError)"
>
> What i sthe problem with the above code
> --
> Posted viahttp://www.ruby-....

You have to require the stringio library
require 'stringio'