Re: Improt vs Get
- To: mathgroup at smc.vnet.net
- Subject: [mg119938] Re: Improt vs Get
- From: Peter Breitfeld <phbrf at t-online.de>
- Date: Thu, 30 Jun 2011 20:39:52 -0400 (EDT)
- References: <201106250929.FAA20235@smc.vnet.net>
Get is used to read Mathematica expressions, so Mathematica evaluates your list and interpretes e.g. -0.5066E+01 as -0.5066*E+1 = 0.377082 Ted Sariyski wrote: > Hi, > I have a file tst: > > {{X [m], -0.5066E+01, -0.4039E+01, -0.3012E+01},{Y [m], -0.5066E+01, > -0.4039E+01, -0.3012E+01}} > > which I Get: > fn = FileNameJoin[{myDir, "tst"}] > > In[]= Get[fn] > Out[]= > {{X[m],-0.377082,-0.097914,0.181254},{Y[m],-0.377082,-0.097914,0.181254}} > > which is not what I expect. > > Import, however, returns the content of tst: > > In[] =Import[fn,"List"] > Out[]= {{{X [m], -0.5066E+01, -0.4039E+01, -0.3012E+01},{Y [m], > -0.5066E+01, -0.4039E+01, -0.3012E+01}}} > > What do I miss here? > Thanks in advance, > --Ted > > > -- _________________________________________________________________ Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de
- References:
- Re: parsing a strig
- From: Bill Rowe <readnews@sbcglobal.net>
- Re: parsing a strig