This is documentation for Mathematica 9, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Mathematica provides convenient and efficient system-independent functions for handling file-related constructs at all levels.


ordinary named file


, etc. — web-type URL

Complete Files

Import, Export import and export in hundreds of formats

ReadList read unstructured data from a file

FilePrint display the raw contents of a file

File Searching

FindList find strings in lists of files

FileNames find files by name

Low-Level File Operations »

OpenRead, OpenWrite open files

Read, Write, WriteString read and write individual data elements

Find ▪ Skip ▪ SetStreamPosition ▪ ...

Mathematica Expression Files »

Get (<<) — get Mathematica expressions from a file (.m file)

Put (>>), PutAppend (>>>) — put Mathematica expressions into a file (.m file)

Save ▪ Splice ▪ DumpSave ▪ Encode

Binary Data »

BinaryReadList ▪ BinaryRead ▪ BinaryWrite ▪ ...

File Properties & Operations »

FileDate ▪ FileByteCount ▪ FileNames ▪ FileHash ▪ CopyFile ▪ ...