From: "Wolfgang Nádasi-Donner" Date: 2007-09-26T23:11:50+09:00 Subject: Re: Test if file is binary ? Don't forget the possibility, that a file ist encoded in UTF-16 or UTF-32. To recognize these textual data you need an extra recognition step in front of the rest. Wolfgang WoNáDo -- Posted via http://www.ruby-forum.com/.