MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Encode and Get


Hi,
>
> i wrote a notebook, and then encoded it using
>
> Encode["plaintext.nb", "codetext.nb", "password"].
>
> i then tried decoding it using
>
> Get["codetext.nb", "password"].
>
> The decoded notebook does not look like the original notebook, and will no
> longer run.
>
> what is wrong?

Encode only is meant to be used with plain text package files (*.m). 
What you Get with what you do is just the raw notebook expression, as it 
is saved to file (a notebook file is a valid Mathematica expression 
after all, which you can check by opening such a file with a text 
editor). You can recover the notebook with:

NotebookPut[Get["codetext.nb", "password"]]

Nevertheless, Encode is really not meant to be used like that. What are 
you trying to achieve?

hth,

albert




  • Prev by Date: Re: How to change graph options?
  • Next by Date: LogLogPlot encounters Infinite expression
  • Previous by thread: Encode and Get
  • Next by thread: Re: Encode and Get