OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Import a text file as a list of strings:

Import["ExampleData/50states.txt","List"]

(RefLink[Import, paclet:ref/Import]) converts records to integers or reals if possible:

ImportString["-1\n0\n2.49000\n18446744073709551616", "List"]

Currency symbols are automatically omitted when importing as a list:

ImportString["$1.99\n$2.49\n$2.99", "List"]

Export a list of numbers using the "List" format:

ExportString[Table[Prime[n],{n,10000,10010}],"List"]

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Basic Formats, paclet:guide/BasicFormats])}, {▪(RefLinkPlain[Importing & Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}})}})