General information
Category:
Coding, syntax & commands
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only