Skip to main content

FileFormatQ

FileFormatQ[source,"fmt"] gives True if the file corresponding to source might be imported as format "fmt" and gives False otherwise.

FileFormatQ[source,{fmt1,fmt2,…}] gives True if source might be imported as one of "fmti".

Please visit the official Wolfram Language Reference for more details and examples on core symbols.