From: "Peter B. Ensch" Date: 2003-04-17T12:58:40+09:00 Subject: How to test for text file In perl, -T returns true if is a text file and -B returns true if is binary. How do you do this in ruby? I've checked File, FileTest, and File.Stat - nothing there to test for text vs. binary filetype. Thanks, P -- ^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^^~^~^~^~^ Peter B. Ensch peterbe@attbi.com ^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^^~^~^~^~^