<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, read-save mysteries</title>
    <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 18:06:59 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 18:06:59 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, read-save mysteries</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, read-save mysteries</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries</link>
    </image>
    <item>
      <title>export as Maple Input</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries?ref=Feed:MaplePrimes:read-save mysteries:Comments#answer74772</link>
      <itunes:summary>One solution is to export the content of the worksheet as maple input, and then read that into a worksheet.  In the worksheet that you want to save do
&lt;pre&gt;
  File -&gt; Export As
&lt;/pre&gt;
then type "myfile" in the "File Name" box and select "Maple Input (.mpl)" for the file type.

If desired you can then inspect (and modify) the saved .mpl file in a text editor.  In another Maple worksheet you can issue the command
&lt;pre&gt;
  read "myfile.mpl";
&lt;/pre&gt;
You may have to specify the full path to myfile.mpl in the read statement.</itunes:summary>
      <description>One solution is to export the content of the worksheet as maple input, and then read that into a worksheet.  In the worksheet that you want to save do
&lt;pre&gt;
  File -&gt; Export As
&lt;/pre&gt;
then type "myfile" in the "File Name" box and select "Maple Input (.mpl)" for the file type.

If desired you can then inspect (and modify) the saved .mpl file in a text editor.  In another Maple worksheet you can issue the command
&lt;pre&gt;
  read "myfile.mpl";
&lt;/pre&gt;
You may have to specify the full path to myfile.mpl in the read statement.</description>
      <guid>74772</guid>
      <pubDate>Fri, 16 Nov 2007 22:06:25 Z</pubDate>
      <itunes:author>Joe
 Riel
</itunes:author>
      <author>Joe
 Riel
</author>
    </item>
    <item>
      <title>After you do
 save nx;
is</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries?ref=Feed:MaplePrimes:read-save mysteries:Comments#answer74691</link>
      <itunes:summary>After you do
 save nx;
is there a file nx.* ?
If not, there is no use trying to load it again.
Maybe your permissions don't allow Maple to write in the default location.
On my Mac, I always to something like
 currentdir("/Users/edgar/tmp/"):
before trying to save a file. 
That is the full pathname of the directory where I want to put such temporary files.  You can use some other location suitable for you.
--- 
G A Edgar</itunes:summary>
      <description>After you do
 save nx;
is there a file nx.* ?
If not, there is no use trying to load it again.
Maybe your permissions don't allow Maple to write in the default location.
On my Mac, I always to something like
 currentdir("/Users/edgar/tmp/"):
before trying to save a file. 
That is the full pathname of the directory where I want to put such temporary files.  You can use some other location suitable for you.
--- 
G A Edgar</description>
      <guid>74691</guid>
      <pubDate>Mon, 26 Nov 2007 03:48:13 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>read save again.</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries?ref=Feed:MaplePrimes:read-save mysteries:Comments#answer74689</link>
      <itunes:summary>Hi,

I can save a few names in a file to a new file that appears on my desktop and have been successful in reading in those names to a new worksheet. However, I have not been able to save my current worksheet and then read it back. I have tried the Export suggestion of Joe Riel to no avail. I have tried to save anames to a file but that does not work either for some very strange reason.(I have been able to do

&gt; xn:=aname('user'):
&gt;save nm, savtry10;

and that works.

 Here is a toy example:

a:=b^2+1;
                              2    
                             b  + 1
x:=sin(a);
                             / 2    \
                          sin\b  + 1/
y:=z-&gt;a*z-x*z^2;
              2
z -&gt; a z - x z 

save anames('user'), savtry9;
Error, save can only save names
# I do not see any error here.

anames('user');
                            y, x, a
save a,x,y, savtry10;
#Note that this has worked!

whattype(anames('user'));
                            exprseq
nm:=anames('user');
                            y, x, a
save nm, savtry11;
# Again, this has worked.

Thanks for help and suggestions.

rick</itunes:summary>
      <description>Hi,

I can save a few names in a file to a new file that appears on my desktop and have been successful in reading in those names to a new worksheet. However, I have not been able to save my current worksheet and then read it back. I have tried the Export suggestion of Joe Riel to no avail. I have tried to save anames to a file but that does not work either for some very strange reason.(I have been able to do

&gt; xn:=aname('user'):
&gt;save nm, savtry10;

and that works.

 Here is a toy example:

a:=b^2+1;
                              2    
                             b  + 1
x:=sin(a);
                             / 2    \
                          sin\b  + 1/
y:=z-&gt;a*z-x*z^2;
              2
z -&gt; a z - x z 

save anames('user'), savtry9;
Error, save can only save names
# I do not see any error here.

anames('user');
                            y, x, a
save a,x,y, savtry10;
#Note that this has worked!

whattype(anames('user'));
                            exprseq
nm:=anames('user');
                            y, x, a
save nm, savtry11;
# Again, this has worked.

Thanks for help and suggestions.

rick</description>
      <guid>74689</guid>
      <pubDate>Mon, 26 Nov 2007 08:05:48 Z</pubDate>
      <itunes:author>awass</itunes:author>
      <author>awass</author>
    </item>
    <item>
      <title>save</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries?ref=Feed:MaplePrimes:read-save mysteries:Comments#answer74686</link>
      <itunes:summary>Actually, that doesn't work.  The help page for ?save says

&lt;blockquote&gt;
Each argument except the last one is "evaluated to a name", while the last argument (the file name) is fully evaluated. 
&lt;/blockquote&gt;

In your example 

&lt;pre&gt;
&gt; nm := anames('user');
&gt; save nm, savtry11;
&lt;/pre&gt;

the only variable whose value will be saved is nm: the contents of the file savtry11 will be 

&lt;pre&gt;
nm := y, x, a;
&lt;/pre&gt;

and the values of y, x and a are not saved.  

That remark about evaluation to a name is also the reason why
&lt;pre&gt;
&gt; save(anames('user'), savtry9);
&lt;/pre&gt;
doesn't work: save doesn't evaluate its argument anames('user').

A work-around is this:

&lt;pre&gt;
&gt; parse(sprintf("save %q", anames('user'), savtry12), 
     statement);  
&lt;/pre&gt;</itunes:summary>
      <description>Actually, that doesn't work.  The help page for ?save says

&lt;blockquote&gt;
Each argument except the last one is "evaluated to a name", while the last argument (the file name) is fully evaluated. 
&lt;/blockquote&gt;

In your example 

&lt;pre&gt;
&gt; nm := anames('user');
&gt; save nm, savtry11;
&lt;/pre&gt;

the only variable whose value will be saved is nm: the contents of the file savtry11 will be 

&lt;pre&gt;
nm := y, x, a;
&lt;/pre&gt;

and the values of y, x and a are not saved.  

That remark about evaluation to a name is also the reason why
&lt;pre&gt;
&gt; save(anames('user'), savtry9);
&lt;/pre&gt;
doesn't work: save doesn't evaluate its argument anames('user').

A work-around is this:

&lt;pre&gt;
&gt; parse(sprintf("save %q", anames('user'), savtry12), 
     statement);  
&lt;/pre&gt;</description>
      <guid>74686</guid>
      <pubDate>Mon, 26 Nov 2007 14:13:09 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>OK</title>
      <link>http://www.mapleprimes.com/questions/40508-Readsave-Mysteries?ref=Feed:MaplePrimes:read-save mysteries:Comments#comment84649</link>
      <itunes:summary>Thank you for the suggestion. I am going to try that right now.</itunes:summary>
      <description>Thank you for the suggestion. I am going to try that right now.</description>
      <guid>84649</guid>
      <pubDate>Tue, 20 Nov 2007 02:41:26 Z</pubDate>
      <itunes:author>awass</itunes:author>
      <author>awass</author>
    </item>
  </channel>
</rss>