FileFormatProperties

Listing of Formats »

FileFormatProperties["fmt"]

returns an association of properties for the specified format "fmt".

FileFormatProperties["fmt","prop"]

returns the property "prop" for the format "fmt".

FileFormatProperties["fmt",{"prop1","prop2",}]

returns multiple properties.

Details

  • FileFormatProperties can return properties used by Import and Export.
  • For the full list of supported import and export formats, see $ImportFormats and $ExportFormats.
  • FileFormatProperties[] returns all properties for all registered import and export formats.
  • Available format properties include:
  • "FileNamePatterns"list of file name patterns associated to a format
    "MIMETypes"list of MIME types associated to a format
  • Import properties:
  • "ImportElements"import elements available for a format
    "DefaultImportElement"the element used as the default import element

Examples

open allclose all

Basic Examples  (2)

Get all properties for the "CSV" format:

Get import elements for the "Text" format:

Scope  (5)

Get file name patterns for the "JPEG" format:

Get MIME types for the "MP4" format:

Get the list of elements and file name patterns for the "CSV" and "XLSX" formats:

Get the default element for all formats:

Get all properties for all formats:

Applications  (2)

Find all formats that by default import as an image:

Find all formats that could be imported as audio:

Properties & Relations  (1)

An export-only format returns None for import properties:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_fileformatproperties, author="Wolfram Research", title="{FileFormatProperties}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FileFormatProperties.html}", note=[Accessed: 27-November-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_fileformatproperties, organization={Wolfram Research}, title={FileFormatProperties}, year={2021}, url={https://reference.wolfram.com/language/ref/FileFormatProperties.html}, note=[Accessed: 27-November-2022 ]}