TerminatedString

Background & Context

    • Null-terminated text strings.
    • Represents an arbitrary number of null-terminated character strings.
    • Stores characters as 8-bit Unicode values.

Import & Export

  • Import["file","TerminatedString"] imports a file as a list of null-terminated character strings.
  • Export["file",str,"TerminatedString"] exports a string as a null-terminated sequence of 8-bit characters.
  • Export["file",{str1,str2,},"TerminatedString"] exports a list of strings to sequences of 8-bit character codes, each terminated by a null character.
  • See the following reference pages for full general information:
  • Import, Exportimport from or export to a file
    CloudImport, CloudExportimport from or export to a cloud object
    ImportString, ExportStringimport from or export to a string
    ImportByteArray, ExportByteArrayimport from or export to a byte array

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements

Examples

Basic Examples  (1)

Export two strings as null-terminated sequences of characters:

Import the previous output: