Re: import FortranForm back
- To: mathgroup at smc.vnet.net
- Subject: [mg90609] Re: import FortranForm back
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 16 Jul 2008 06:27:50 -0400 (EDT)
- References: <g5hthn$jad$1@smc.vnet.net>
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. >