Encode
Usage
• Encode["source", "dest"]用于把文件source进行编码后写入文件dest.
• <<dest在读出文件内容之前对文件进行编码.
• Encode["source", "dest", "key"]生成一个编码文件,该文件必须使用Get["dest", "key"]读出.
Notes
• 编码文件仅包含可输出的 ASCII 字符. 它们以一个可由Get识别的特殊序列开始. • 在特定计算机系统上 Encode["source", "dest", MachineID->"ID"] 能被用来生成一个只有在具有特殊 $MachineID的计算机上才能被读出的编码文件 • Mathematica 没有提供函数来把编码文件还原为它们原来的形式.
Further Examples
This creates a file in the current working directory.
In[1]:=
|
The encoded file is written to encodefile1.
In[2]:=
|
Here are the contents of the encoded file.
In[3]:=
|
 Get automatically decodes files before reading their contents.
In[4]:=
|
Out[4]=
|
|