SetFileFormatProperties

Listing of Formats »

SetFileFormatProperties["fmt","prop"val]

sets the value of a property "prop" for the specified format "fmt".

SetFileFormatProperties["fmt",{"prop1"val1,"prop2"val2,}]

sets the value of multiple properties "propi".

Details

  • SetFileFormatProperties can set properties for a format that is used by Import and Export.
  • For the full list of supported import and export formats, see $ImportFormats and $ExportFormats.
  • 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:
  • "DefaultImportElement"the element used as the default import element

Examples

open allclose all

Basic Examples  (1)

Change the default import element for CSV files to "Dataset":

Import a CSV using the new default element:

Reset the default element:

Scope  (1)

Check the default import element for CSV:

Import a CSV file using the default element:

Change the default import element for CSV files to "Dataset":

Import a CSV using the new default element:

Reset the default element:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_setfileformatproperties, author="Wolfram Research", title="{SetFileFormatProperties}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/SetFileFormatProperties.html}", note=[Accessed: 06-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_setfileformatproperties, organization={Wolfram Research}, title={SetFileFormatProperties}, year={2021}, url={https://reference.wolfram.com/language/ref/SetFileFormatProperties.html}, note=[Accessed: 06-October-2024 ]}