Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Files > Mathematica Expressions in Files > Encode >

Encode

Encode
writes an encoded version of the file source to the file dest.
<<dest
decodes the file before reading its contents.
Encode
produces an encoded file that must be read in using Get.
  • Encoded files contain only printable ASCII characters. They begin with a special sequence that is recognized by Get.
  • On certain computer systems Encode can be used to generate an encoded file that can be read only on a computer with a particular $MachineID.
  • No function is provided in Mathematica to convert encoded files back to their original form.
Set up the name of a file that can be used as temporary storage:
Encode the package file , putting the results in the temporary file:
The file is visually unreadable:
Use Get to decode and load the file:
This has loaded the definitions of the package:
Set up the name of a file that can be used as temporary storage:
In[1]:=
Click for copyable input
Out[1]=
Encode the package file , putting the results in the temporary file:
In[2]:=
Click for copyable input
The file is visually unreadable:
Use Get to decode and load the file:
In[4]:=
Click for copyable input
This has loaded the definitions of the package:
In[6]:=
Click for copyable input
Out[6]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF