Hello Jean, I had tried to send you a personal mail, but unfortunately it bounced back with Deferred: Connection refused by schur.institut.math.jussieu.fr. so I post it to clr this time. >>>>> "Jean" == Jean Michel <jmichel / schur.institut.math.jussieu.fr> writes: Jean> In article <0G6G00BZI07VGI / mta6.snfc21.pbi.net>, Kevin Smith Jean> <sent / qualitycode.com> wrote: >> jmichel / schur.institut.math.jussieu.fr wrote: >> >>> On another topic, is there a way in ruby to have a string >>> behave as a file (something like the 'istringstrem' class of >>> C++ ?) (...) Jean> I do not think this solves my problem. I will give the (...) Jean> Now, I want to re-use my code to parse an ID3V3 tag sitting Jean> in a string in memory. In C++, I can just make the string Jean> into an istringstream and share the same code. I don't see (...) Jean> since neither String nor IO is a module. What did I miss Jean> here? Nothing! Ruby has not such a thingy officially. But I have written a small library that should do what you need. Unfortunately I never had time to write the corresponding documentation for it. But perhaps you could use it anyway. If you want you can get that lib under: http://me.in-berlin.de/~qiao Download the file stringio.tar.gz then. Installation is very easy. Simply unpack the archive and put StringIO.rb into an directory that will is contained in ruby's variable $: The file testStringIO.rb contains, you guessed it, a script to test the functionalities. You could use it as example ... Jean> Best regards, Jean MICHEL HTH, \cle