Jakob Andreas Baerentzen wrote:
> 
> >
> > holotko wrote:
> >
> > > This is very simple however, is there an relativly easy,
> > > straightforward way to determine whether or not the file in question
> > > is an image file? By determining whether the file is an image file or
> > > not I mean specifically something more elegant than merely examining
> > > the file name for a "jpg" or "gif"  extension.
> 
> wouldn't it be possible to snatch some vital parts from the
> unix `file' program and use them.
> 
> Andreas

Yes. It may even be possible to use the "file"program itself, Perhaps
by using "popen()" to create a pipe and then reading the output from
the pipe to determine the file type via some simple matching criteria.
Your suggestion is appreciated...

/John <[EMAIL PROTECTED]>

-- 
email: [EMAIL PROTECTED]
Local mailserver <landreau.ruffe.edu> , remote <ns.computer.net>

Winston tastes good like a cigarette should!

Reply via email to