From: Austin Ziegler Date: 2007-02-25T00:06:29+09:00 Subject: Re: How can i determine the file type? On 2/24/07, Sasaki 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