Mathematica 9 is now available

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 没有提供函数来把编码文件还原为它们原来的形式.
• 参见 Mathematica 全书: 2.11.1节.
• 同时参见: ReadProtected, $MachineID.
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]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.