OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Import and count the file names included in this installation of the Wolfram System:

Import[$InstallationDirectory] // Length

Show the names of some example files included in the Wolfram System:

Take[Import["ExampleData/"],8]

Import a file from a directory, specifying its name as an (RefLink[Import, paclet:ref/Import]) element:

Import["ExampleData/", "aspirin.mol"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[BZIP2, paclet:ref/format/BZIP2])  ▪  (RefLink[GZIP, paclet:ref/format/GZIP])  ▪  (RefLink[SDTS, paclet:ref/format/SDTS])  ▪  (RefLink[TAR, paclet:ref/format/TAR])  ▪  (RefLink[ZIP, paclet:ref/format/ZIP])}})}})

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