Re: detecting file types
- From: Måns Rullgård <mru@xxxxxxxxxxxxx>
- Date: Wed, 08 Feb 2006 20:11:33 +0000
dagecko <dagecko@xxxxxxx> writes:
Le Wed, 08 Feb 2006 13:35:55 -0500, Chris F.A. Johnson a écrit :
On 2006-02-08, dagecko wrote:
Le Wed, 08 Feb 2006 12:24:03 -0500, Bill Marcum a écrit :
On Wed, 08 Feb 2006 18:05:57 +0100, dagecko
<dagecko@xxxxxxx> wrote:
Hi
I would like to know how to detect if a file is binary, if
it's an ascii or if it's a link to another file.
Unfortunately I don't know how to do that.
man file
LOL.
What's so funny? If you type "man file" at a command prompt, you
will be given the manual for the "file" command, which is what you
need to determine the type of a file.
I didn't knew man file, it was so easy for you to tell that,
that's why I made a lol, there was nothing against you, sorry
if I hurted you.
I read it quickly, but in fact this was not what I was looking
for. I needed a way to detect, in a program made in C/C++, if
a file is a binary one or a simple ascii one.
man libmagic
--
Måns Rullgård
mru@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: detecting file types
- From: dagecko
- Re: detecting file types
- References:
- detecting file types
- From: dagecko
- Re: detecting file types
- From: Bill Marcum
- Re: detecting file types
- From: dagecko
- Re: detecting file types
- From: Chris F.A. Johnson
- Re: detecting file types
- From: dagecko
- detecting file types
- Prev by Date: Re: detecting file types
- Next by Date: Re: detecting file types
- Previous by thread: Re: detecting file types
- Next by thread: Re: detecting file types
- Index(es):
Relevant Pages
|