From: Lloyd Zusman Date: 2002-08-07T21:26:56+09:00 Subject: Something that corresponds to Perl's -T and -B tests? I've searched the Ruby documentation, and I can't find descriptions of anything that corresponds to Perl's `-T' and `-B' tests ... these test whether a file contains ASCII text or "binary" data, respectively. I'm happy to write such a test myself in Ruby and then post it here, and I can easily do so. But I prefer not to re-invent the wheel, so does anyone know of such a thing that already might have been written, or which I might have missed in my search through the docs? Thank you very much in advance. -- Lloyd Zusman ljz@asfast.com