On 2/24/07, Sasaki <pb_sasaki / e-sao.co.jp> wrote: > hi guys, > How can i determine the file type? > I have to do these actions: > > 1. I have tor read all files from a directory and check them > 2.after checking i have to read only the excel files. Look at MIME::Types -- it will help. Others are also working on a port of libmagic (the Calgary Ruby Users' Society) to pure Ruby. -austin -- Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/ * austin / halostatue.ca * http://www.halostatue.ca/feed/ * austin / zieglers.ca