Re: Re: Bug in Import?
- To: mathgroup at smc.vnet.net
- Subject: [mg54797] Re: [mg54765] Re: Bug in Import?
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Wed, 2 Mar 2005 01:26:43 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <cvum3g$bmp$1@smc.vnet.net> <200503010658.BAA25162@smc.vnet.net>
- Reply-to: murray at math.umass.edu
- Sender: owner-wri-mathgroup at wolfram.com
Here's what I get: $Version 5.1 for Microsoft Windows (October 25, 2004) Export["test.dat", {{"2005-01-24", "2005-02-14"}, {"2005-01-24", "2005-02-14"}}]; Import["test.dat", "Text"] // InputForm "2005-01-24 2005-02-14\n2005-01-24 2005-02-14" Import["test.dat"] {{"2005-01-24", "2005-02-14"}, {2005, -1, -24, 2005, -2, -14}} Rather than a bug, the behavior originally cited would seem to be a failure of the documentation to describe the default behavior of Import when the file extension is ".dat". meznaric wrote: > Hm, this seems strange. I am using 4.1 and what happens is this: > > Export["R:\\test.dat", > {{"2005-01-24", "2005-02-14"}, > { "2005-01-24", "2005-02-14"}}] > > Import["R:\\test.dat"] > {{1980, 1989}, {1980, 1989}} > > !! R:\\test.dat > 2005-01-24 2005-02-14 > 2005-01-24 2005-02-14 > > In the Import case Mathematica seems to have actually evaluated those > cells as if they hadn't been strings, but integers. > > In your case, it certainly seems to be a bug, though. How can two > identical list parts be exported/imported in a different way? > > Regards, > Sebastjan Meznaric > > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- Follow-Ups:
- Re: Re: Re: Bug in Import?
- From: DrBob <drbob@bigfoot.com>
- Re: Re: Re: Bug in Import?
- References:
- Re: Bug in Import?
- From: "meznaric" <meznaric@gmail.com>
- Re: Bug in Import?