[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: (no subject)

Hi Sachin,
Sorry for not mentioning that I need to do it programmatically from a user

Sachin Garg wrote:

> "Satheesh Kumar. N.K" wrote:
> >
> > Hi,
> > How can I make out if a file is binary or text given its path?
> > Is there a system call which will help me through this? Note that
> > I don't want to test if a file is block special, char special etc. All I
> >
> > want is if a given file is binary or text.
> $ file <filename>
> -----------------------------------------------------------------------
> LIP is all for free speech.  But it was created for a purpose - to help
> people discuss technical programming related issues about Linux.  If
> your messages are counterproductive to this purpose, your privileges to
> submit messages can and will be revoked.