MathGroup Archive 2012

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

Search the Archive

Re: Encode and Get

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126148] Re: Encode and Get
  • From: A Retey <awnl at gmx-topmail.de>
  • Date: Sat, 21 Apr 2012 00:29:17 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jmri6t$l9m$1@smc.vnet.net>

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