Message Boards Message Boards

0
|
3417 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

import and export list: input and output do not match

Posted 11 years ago
Hi All

I am trying to export and then import a list; I woud like to obtain exactly the same list that I exported. I do this:

initial = {{{2013, 1, 2}, 41}, {{2013, 1, 3}, 42}};
initial // TableForm
Export["out.txt", initial, "List"];
final = Import["out.txt", "List"]
final // TableForm
and I get that "final" is different from "initial", see the attached pdf. I tried all possible combinations of "List" and "Table" and nothing works.
I use Mathematica 9 on Mac OSX 10.9

Thanks for any help

Luca
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract

Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use