Files

The Wolfram Language 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

ReadString, WriteString read and write complete file contents as strings

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 read and write individual data elements

ReadLine, WriteLine read and write lines of text

Find  ▪  Skip  ▪  SetStreamPosition  ▪  ...

Wolfram Language Expression Files »

Get (<<) get Wolfram Language expressions from a file (.m file)

Put (>>), PutAppend (>>>) put Wolfram Language expressions into a file (.m file)

Save  ▪  Splice  ▪  DumpSave  ▪  Encode

Binary Data »

BinaryReadList  ▪  BinaryRead  ▪  BinaryWrite  ▪  ...

File Properties & Operations »

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