From: matz@... (Yukihiro Matsumoto) Date: 2000-12-20T15:41:10+09:00 Subject: [ruby-talk:7747] Re: String as IO and/or File object? Hi, In message "[ruby-talk:7743] Re: String as IO and/or File object?" on 00/12/20, "Brian F. Feldman" writes: |> If that doesn't answer your question, please |> indicate what methods of IO you would like to |> apply to a string. Almost of output operations are via 'write' method, so that any object which responds to 'write' can be the target of output. |For what it's worth, I'd like to have the reverse of this -- an IO as a |String (or as something that derives from astring) via mmap. I would find |this very useful in that I could simply do something like: | |mf = open("bigimage", "r").to_mmap("r") |mf.scan(/.../)... Pretty interesting. I wish to see the extension which implements this. I prefer just 'mmap' over 'to_mmap' though. matz.