MathGroup Archive 2000

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

Search the Archive

Re: Saving

  • To: mathgroup at
  • Subject: [mg21775] Re: Saving
  • From: Tom Burton <tburton at>
  • Date: Thu, 27 Jan 2000 22:56:56 -0500 (EST)
  • Organization: Brahea, Inc.
  • References: <86mdn7$>
  • Sender: owner-wri-mathgroup at

On 26 Jan 2000 04:11:03 -0500, in comp.soft-sys.math.mathematica you

>how can i create a file name in a variable in a program to save results?
>For example,
>filename= SequenceForm["test", i, ".asc"] /. {i -> 1}
>Put[result, filename]
>gives the output:
>General::stream: test1.asc is not a string, InputStream[ ], or
>OutputStream[ ].

SequenceForm, StringForm, StyleForm are "wrappers" that affect the
formatting of output for display. They are not processed within a
calculation.  You need another construction, such as

filename = StringJoin["test", ToString[i], ".asc"], or, equivalently
filename = "test" <> ToString[i] <> ".asc"
>by the way, is there a way to save (all) variables with name and current

Try the Save command <grin>.
>thanks, robert
You're welcome,

Tom Burton

  • Prev by Date: Re: Bessel J0 zeros
  • Next by Date: Re: Saving
  • Previous by thread: Re: Saving
  • Next by thread: Re: Saving