MathGroup Archive 2008

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

Search the Archive

Re: Encode, Get ...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94636] Re: Encode, Get ...
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Thu, 18 Dec 2008 07:22:14 -0500 (EST)

On 12/17/08 at 6:31 AM, Ignacio.Plazeta at speednet.es (Ignacio Plazeta)
wrote:

>Surely I have miss out something; the following code

>SetDirectory[NotebookDirectory[]];
>myKey = "xyz";
>showFile = "1.bmp";
>hiddenFile = "2.bmp";
>Encode[showFile, hiddenFile, myKey]
>Get[hiddenFile, myKey]

>dosn't work the way I expected and returns, in the pink "Messages" windows=
:

>Syntax::sntxi: Incomplete expression; more input is needed. (line 1
>of "2.bmp")

I don't see anything wrong with the code you posted above and
Encode/Get work as expected on my system. That is

In[1]:= RandomInteger[100, {3, 4}] >> "test data.txt"

In[2]:= Encode["test data.txt", "encoded data", "xyz"]

In[3]:= Get["encoded data", "xyz"] == Get["test data.txt"]

Out[3]= True

In[4]:= encodedData = "encoded data";
         key = "xyz";

In[6]:= Get[encodedData, key] == Get["test data.txt"]

Out[6]= True

In[7]:= $Version

Out[7]= 7.0 for Mac OS X x86 (64-bit) (November 11, 2008)



  • Prev by Date: Re: Forcing Trig Identities
  • Next by Date: Re: Need Help
  • Previous by thread: Re: Encode, Get ...
  • Next by thread: Re: Encode, Get ...