MathGroup Archive 2000

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

Search the Archive

Re: external files and strings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22596] Re: [mg22585] external files and strings
  • From: Jean-Marie Thomas <jmt at agat.net>
  • Date: Mon, 13 Mar 2000 11:03:17 -0500 (EST)
  • Organization: TeA
  • References: <200003130355.WAA20423@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I could not reproduce this error !
Mathematica 4 on Linux

jmt


On Mon, 13 Mar 2000, Otto Linsuain wrote:
> Hello. I need to store graphic results from a series of calculations
> which I run in batch mode. I try the following and I can't see what is
> going on:
> 
>  Do[ Plot[Sin[i x], {x,0,Pi}, DisplayFunction->Identity] >>
> "sin"<>ToString[i]<>".m", {i,1,10}]
> 
>  You can actually run this on a Notebook and it will just create ten files
> 
>  sin1.m to sin10.m in your directory. you can open any of them in the
> same or another Notebook:
> 
>  sin1 = << "sin1.m"
> 
>  Display[$Display,sin1], etc  and you will see each one of the graphs.
> 
>  So far, so good. Now comes the problem:
> 
>  When I run that Do[ Plot.... ...{i,0,1}]
> 
>  command in batch mode (converting the Notebook to a text file and so on)
> it creates only one file called sin ( no 1,2 or .m) and in the out file
> I find the following error:
> 
>  StringJoint::string: String expected at position 1 in Null<>1<>.m
> 
>  It seems to be unable to read the first position of the file name
> string in batch mode!
> 
>  I have tried adding more strings, but it is only the first that causes
> confusion, so if I try to call the file: "sin"<>ToString[i]<>"times x
> ... and so on, the error message shows the rest of the strings OK, but
> pposition 1 interprets as Null. What is going on? Any ideas of how to fix
> this? Thanks a lot. Otto Linsuain.
> 
>  P.S. I know this seems like a very benign problem, but if I can't get
> the computer to bookkeep a long series of results of long calculations,
> I will go crazy trying to figure out which graph is which!


  • Prev by Date: N with n-digit precision for 6<n<17
  • Next by Date: Re: Suppressing display of LogPlots
  • Previous by thread: external files and strings
  • Next by thread: N with n-digit precision for 6<n<17