ImportString

Listing of Formats »

ImportString["data","format"]

imports data in the specified format from a string.

ImportString["data",elements]

imports the specified elements.

ImportString["data"]

attempts to determine the format of the string from its contents.

Details

Examples

open allclose all

Basic Examples  (2)

Import a string by automatically inferring its format:

Import a string as a table:

Scope  (1)

Import a string by automatically inferring its format:

Use StringFormat to infer the format used by ImportString:

Explicitly specify the format:

Import as XML:

List all available elements:

Import a specific element:

Import with an option:

Possible Issues  (1)

Automatic format detection may not give the desired result:

Specify the intended format:

Give the elements available for a string in specified format:

Import an available element:

Wolfram Research (1999), ImportString, Wolfram Language function, https://reference.wolfram.com/language/ref/ImportString.html (updated 2007).

Text

Wolfram Research (1999), ImportString, Wolfram Language function, https://reference.wolfram.com/language/ref/ImportString.html (updated 2007).

CMS

Wolfram Language. 1999. "ImportString." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/ImportString.html.

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_importstring, organization={Wolfram Research}, title={ImportString}, year={2007}, url={https://reference.wolfram.com/language/ref/ImportString.html}, note=[Accessed: 26-November-2024 ]}