此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Import/Export 导入/导出 格式

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:
In[1]:=
Click for copyable input
Out[1]=
Import the previous output:
In[2]:=
Click for copyable input
Out[2]=