Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Append to a file?

  • To: mathgroup at
  • Subject: [mg47571] Re: Append to a file?
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 16 Apr 2004 05:20:46 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <c5lfhs$brf$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


why not use PutAppend[] to save the temporay results,
read this file with Get[] when your calculation is finished
and export this ??


Nathan Moore wrote:
> Suppose I have a really difficult calculation that I perform - a nested
> sum,
> For[
>         For[ something_really_hard,{i,0,20}],
>         {j,0,50}
> ]
> where "something_really_hard" is a calculation that takes several
> minutes.  Total execution time is going to be several hours, and I'd
> rather not have the calculation go most of the day and the fail at the
> last minute.
> Each execution of "something_really_hard" produces a vector of numbers
> as a result.  I could of course store this vector as a list and then
> export it to file after the evaluation finishes, but I'd rather not
> risk losing that execution time.
> Is there an "Append-Export" command which I could use to append the
> state of my evaluation to the data file?  The c programming corollary
> I'm thinking of is fflush()?  I'm imagining Mathematica adding one line
> to the data file each time the inner for loop iterates.
> Nathan Moore
> University of Minnesota Physics

  • Prev by Date: Re: Obtaining Standard Errors when using FindMinimum in Mathematica
  • Next by Date: Re: Solvability sensitive to small changes in numerical input
  • Previous by thread: Append to a file?
  • Next by thread: Critical memory leak with J/Link