ecl-logo Documentation

FastExport

FastExport[filepath, content, filetype]file

writes content to a file at filepath using the fastest method available, dictated by filetype.

Details

  • If a file already exists at the filepath specified, it will be overwritten.
  • Inherits CharacterEncoding option from OpenWrite
  • Input
    Output
    General Options

Examples

Basic Examples  (4)

Export a string to a file:

String is written to the exported file's contents:

Existing files are overwritten:

Non-text files are exported according to their file type specification using Export:

Additional Examples  (1)

FastExport should always be faster than Export:

Options  (2)

BinaryFormat  (1)

Specifies that a write stream should be opened in binary format, so that no textual interpretation of newlines or other data is done:

CharacterEncoding  (1)

Specify the character encoding to be used in the file's content string: