Files

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

ReferenceReference

ordinary named file

pipe

, 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 ▪ ...

New to Mathematica? Find your learning path »
Have a question? Ask support »