Low-Level File Operations

Mathematica provides efficient system-independent direct access to all aspects of files of any size.

ReferenceReference

File Opening & Closing

OpenRead ▪ OpenWrite ▪ OpenAppend ▪ CreateTemporary ▪ Close

File Options

Options ▪ SetOptions ▪ CharacterEncoding ▪ PageWidth ▪ BinaryFormat

Streams

Streams ▪ OutputStream ▪ InputStream ▪ StringToStream

Reading & Writing

Read ▪ ReadList ▪ Write ▪ WriteString

Byte, Number specify data to read

Character ▪ Record ▪ Word ▪ Real ▪ String ▪ Expression

RecordSeparators, WordSeparators specify data delimiters

TokenWords ▪ NullWords ▪ NullRecords ▪ RecordLists

Seeking in Streams

Skip ▪ Find ▪ StreamPosition ▪ SetStreamPosition

Binary Data »

BinaryRead ▪ BinaryReadList ▪ BinaryWrite ▪ ...

Stream Methods »

DefineInputStreamMethod ▪ DefineOutputStreamMethod ▪ ...

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