编码

编码["来源","目的地"]

写入文件的编码版本来源到文件目的地.

<<目的地

在读取文件内容之前对文件进行解码。

编码["来源","目的地","钥匙"]

生成必须使用读取的编码文件获取["目的地","钥匙"].

详细信息和选项

  • 编码文件仅包含可打印的ASCII字符。它们以一个特殊的序列开始,该序列由获取.
  • 在某些计算机系统上编码["来源","目的地",机器ID->“身份证件"]可用于生成编码文件,该文件在具有特定$机器ID.
  • Wolfram语言中没有提供将编码文件转换回原始形式的功能。
  • 文件["名称"]可用于指定文件名。

示例

基本示例  (1)

设置可用作临时存储的文件名:

编码程序包文件科拉茨。,将结果放入临时文件:

该文件在视觉上不可读:

使用获取要解码并加载文件:

这已加载科拉茨包裹:

Wolfram Research(1991),编码,Wolfram语言函数,https://reference.wolfram.com/language/ref/Encode.html(2016年更新)。

文本

Wolfram Research(1991),编码,Wolfram语言函数,https://reference.wolfram.com/language/ref/Encode.html(2016年更新)。

CMS公司

沃尔夫拉姆语言。1991年,“编码”,Wolfram语言与系统文档中心。Wolfram研究。上次修改日期:2016年。https://reference.wolfram.com/language/ref/Encode.html。

亚太地区

沃尔夫拉姆语言。(1991). 编码。Wolfram语言与系统文档中心。检索自https://reference.wolfram.com/language/ref/Encode.html参考文件

BibTeX公司

@misc{reference.wolfram_2024_encode,author=“wolfram Research”,title=“{encode}”,year=“2016”,howpublished=“\url{https://reference.wolfram.com/language/ref/Encoe.html}”]}

BibLaTeX公司

@online{reference.wolfram_2024_encode,organization={wolfram Research},title={encode},year={2016},url={https://reference.wolfram.com/language/ref/Encoe.html},note=[访问时间:2024年6月14日]}