Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Exporting/Importing Nested List' topicStudent Support Forum > General > Archives > "Exporting/Importing Nested List"

Next Comment >Help | Reply To Topic
Author Comment/Response
Andreas
10/23/12 04:43am

I have a problem with exporting nested lists.
If I exported a nested list and then import the same list again, Mathematica does not interpret it correctly:

In[63]:= test = {{{1, 2}, 3}, {3, 4}}
Out[63]= {{{1, 2}, 3}, {3, 4}}

In[64]:= Export["out.dat", test]
Out[64]= "out.dat"

In[65]:= Import["out.dat"]
Out[65]= {{"{1,", "2}", 3}, {3, 4}}

See also the attached notebook.
How can I fix it? Using the option "table" (i.e. Export["out.dat",test,"Table"] ) changes nothing.

Thanks in advance!
Andreas

Attachment: ExportingTestArray.nb, URL: ,

Subject (listing for 'Exporting/Importing Nested List')
Author Date Posted
Exporting/Importing Nested List Andreas 10/23/12 04:43am
Re: Exporting/Importing Nested List Bill Simpson 10/23/12 8:06pm
Next Comment >Help | Reply To Topic