Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Problem with reading version 4.2 DumpSave files,...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75600] Re: Problem with reading version 4.2 DumpSave files,...
  • From: ragfield <ragfield at gmail.com>
  • Date: Sun, 6 May 2007 01:51:12 -0400 (EDT)
  • References: <f1er5d$5i9$1@smc.vnet.net>

On May 4, 2:33 am, terry <terryis... at yahoo.com> wrote:
> Because of a Mathematica bug (which still isn't fixed in the just
> released version 6), my version 4.2 DumpSave files cannot be read by
> my version 5.2. So as a result I'm trying to find a way to _exactly_
> write out these numbers to a pure ascii text file from within 4.2,
> then read them in as text and convert them back into number form
> within 5.2 without losing any digits. Any idea's how I could
> accomplish this simply?
>
> Note that simply saving the approximate real numbers with Save[] and
> retreiving them will not work in this case because Save[] 'distorts'
> the numbers even if they are loaded back into the same version of
> Mathematica (when it converts to base 10 and back).

If you have both the old version and new version of Mathematica
installed on your system you can probably use MathLink to transfer the
exact expression from the old version of Mathematica to the new
version, then re-DumpSave it in the new version.  Try something like
this in the *old* version, adjusting the LinkLaunch path to point to
the new version on your system.

data=Get["oldfile.mx"]

l=LinkLaunch["/Applications/Mathematica.app/Contents/MacOS/MathKernel -
mathlink"]

LinkRead[l]

LinkWrite[l,Unevaluated[
  EvaluatePacket[DumpSave["newfile.mx", Evaluate[data]]]]]

LinkRead[l]

LinkClose[l]

-Rob



  • Prev by Date: Re: [Mathematica 6] What happened to the 5.2 HELP interface? Can
  • Next by Date: HarmonicNumber bug and related Zeta disappointments
  • Previous by thread: Re: Problem with reading version 4.2 DumpSave files,...
  • Next by thread: Re: Problem with reading version 4.2 DumpSave files,...