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)
--------------------------------------------------------------------------------------------