[plt-scheme] Guessing the file type?
On Unix/OS X there is a program called 'file' that works pretty well.
Also, if you use the mime type library in the PLT Web server, it uses
the system database of file extensions to return a mime type.
Jay
On Sun, Jul 26, 2009 at 6:48 AM, Amit Saha<lists.amitsaha at gmail.com> wrote:
> Hello all,
>
> Is there a known way to find the MIME type of a file: text, audio, etc ?
>
> Thanks a ton.
>
> Best,
> Amit
> --
> email: amitsaha.in at gmail.com
> Journal: http://amitksaha.wordpress.com
> µ-blog: http://twitter.com/amitsaha
> IRC: cornucopic on #scheme, #lisp, #math, #linux
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93