| Store | Cart

is it a binary file?

From: <gerh...@philips.com>
Wed, 29 Jan 2003 16:05:05 +0100
Hi all,

is there a built in way to distinguish a binary file from a text file, such that
I can call different routines to read and process it?

Or is the only way to make a statistics about all the character codes
in the file, and treat it as a binary file if there are lots of 0x00...0x1f and
> 0x80 characters?

Regards,
---------------------------------------------------------------------------------------
Gerhard Petrowitsch                                Tel.: +49 8151 270 126
SP3D Chip Design GmbH                    Fax:  +49 8151 270 200
Petersbrunnerstr. 17                Home Office: +49 821 9069 741
82319 Starnberg, Germany      SERI: gerh...@DESTNSC1
---------------------------------------------------------------------------------------
Be like the ant.  When the ant gets a mixture of sand and sugar,
it selects only sugar; it neglects sand. See only good in others.
Pay no attention to the bad.                                (Sathya Sai Baba)
--------------------------------------------------------------------------------------------

Recent Messages in this Thread
gerh...@philips.com Jan 29, 2003 03:05 pm
Burak Gürsoy Jan 29, 2003 03:33 pm
Carl Jolley Jan 30, 2003 08:16 pm
Messages in this thread