Information générale
Catégorie:
Codage, syntaxe et commandes
>Is there a way to read a file type? i.e if I expect to receive coma delimited files and get a spreadsheet instead, is there anyway to tell?
>
>Thanks
There really is no concept of a file type at that level - it's just a string of bytes. What you may want to do is use FREAD() to read in the first 'n' bytes and look through them one-by-one. If you find "binary" data (where ASC(x) < 32 or > 126, except for 13 and 10 (carriage return/linefeed)), you probably have a "binary" file.
Don
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement