WOLFRAM

SetFileFormatProperties
Copy to clipboard.
SetFileFormatProperties

Listing of Formats »
[Experimental]

Copy to clipboard.
SetFileFormatProperties["fmt","prop"val]

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

Copy to clipboard.
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)Summary of the most common use cases

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

Out[3]=3

Import a CSV using the new default element:

Out[4]=4

Reset the default element:

Out[7]=7

Scope  (1)Survey of the scope of standard use cases

Check the default import element for CSV:

Out[1]=1

Import a CSV file using the default element:

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

Out[3]=3

Import a CSV using the new default element:

Out[4]=4

Reset the default element:

Out[5]=5
Wolfram Research (2021), SetFileFormatProperties, Wolfram Language function, https://reference.wolfram.com/language/ref/SetFileFormatProperties.html.
Copy to clipboard.
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.

Copy to clipboard.
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.

Copy to clipboard.
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

Copy to clipboard.
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: 07-January-2025 ]}

Copy to clipboard.
@misc{reference.wolfram_2024_setfileformatproperties, author="Wolfram Research", title="{SetFileFormatProperties}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/SetFileFormatProperties.html}", note=[Accessed: 07-January-2025 ]}

BibLaTeX

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

Copy to clipboard.
@online{reference.wolfram_2024_setfileformatproperties, organization={Wolfram Research}, title={SetFileFormatProperties}, year={2021}, url={https://reference.wolfram.com/language/ref/SetFileFormatProperties.html}, note=[Accessed: 07-January-2025 ]}