FileFormatQ

Listing of Formats »

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".

Details and Options

Examples

open allclose all

Basic Examples  (1)

Check if a file might be a JPEG:

Check another file:

Check if a file might be in one of the image formats:

Scope  (1)

Check if a URL might be a PDF:

Wolfram Research (2020), FileFormatQ, Wolfram Language function, https://reference.wolfram.com/language/ref/FileFormatQ.html.

Text

Wolfram Research (2020), FileFormatQ, Wolfram Language function, https://reference.wolfram.com/language/ref/FileFormatQ.html.

CMS

Wolfram Language. 2020. "FileFormatQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FileFormatQ.html.

APA

Wolfram Language. (2020). FileFormatQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileFormatQ.html

BibTeX

@misc{reference.wolfram_2024_fileformatq, author="Wolfram Research", title="{FileFormatQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/FileFormatQ.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fileformatq, organization={Wolfram Research}, title={FileFormatQ}, year={2020}, url={https://reference.wolfram.com/language/ref/FileFormatQ.html}, note=[Accessed: 18-November-2024 ]}