Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Handling & Data Sources >
Mathematica > Core Language > Procedural Programming > Basic Input & Output in Programs >
Files
Mathematica provides convenient and efficient system-independent functions for handling file-related constructs at all levels.
"file" ordinary named file
"!program" pipe
"http:...", 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
OpenRead, OpenWrite open files
Read, Write, WriteString read and write individual data elements
Find  ▪ Skip  ▪ SetStreamPosition  ▪ ...
Get (<<) — get Mathematica expressions from a file (.m file)
Put (>>), PutAppend (>>>) — put Mathematica expressions into a file (.m file)
Save  ▪ Splice  ▪ DumpSave  ▪ Encode
    
FileDate  ▪ FileByteCount  ▪ FileNames  ▪ FileHash  ▪ CopyFile  ▪ ...
TUTORIALS
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team