On Friday 21 May 2004 03:28 pm, [EMAIL PROTECTED] wrote:

> The problem is how to identify, based on the bytes being dowloaded, if the
> file is a database or not.

You could check how 'file' does it, or shell to it:

$ file SysZLib.prc
SysZLib.prc: Palm OS dynamic library data "ZLib"

$ file menuhack.prc
menuhack.prc: HackMaster hack "MenuHack HACK"

$ file stainout.prc
stainout.prc: AportisDoc file "Stain-Removal-Guide"

then again, it sometimes doesn't indicate anything on perfectly good files..

$ file AddressDB.pdb
AddressDB.pdb: data

versus

$ file rfc804.pdb
rfc804.pdb: AportisDoc file "rfc804"

-- 
/* Chris Faherty <[EMAIL PROTECTED]> */

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to