Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
Mathematica Import/Export Format

TerminatedString

Null-terminated text strings.
Represents an arbitrary number of null-terminated character strings.
Stores characters as 8-bit Unicode values.
  • 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.
  • Import["file", "TerminatedString"] returns a list of strings.
  • Export["file", expr, "TerminatedString"] creates a text file from the OutputForm representation of expr.
"Elements" list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties and settings
Export two strings as null-terminated sequences of characters:
Import the previous output:
Export two strings as null-terminated sequences of characters:
In[1]:=
Click for copyable input
Out[1]=
Import the previous output:
In[2]:=
Click for copyable input
Out[2]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team