MathGroup Archive 2008

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

Search the Archive

Re: import FortranForm back


Hi,

FortranForm[] can't handle List[] because FORTRAN *has no* Lists
so it is no wonder that the Import[] fail
you mean

Export["foo", FortranForm /@ foo, "List"]
Import["foo", "List"]

Regards
   Jens

jyan.stat at gmail.com wrote:
> I have a file saved in FortranForm from some previous work. Now I'd
> like to read it back in and continue working on it. For example,
> 
> foo := Table[a i, {i, 1, 4}]
> Export["foo", FortranForm[foo], "Table"]
> Import["foo", "Table"]
> foo
> 
> Note that the last two lines are not the same. How can I recover foo
> from Import? Thanks in advance.
> 


  • Prev by Date: Re: Mathematica kernel color printing (Linux)
  • Next by Date: Re: Wacky Font Substitution in .eps Export
  • Previous by thread: import FortranForm back
  • Next by thread: Re: import FortranForm back