Hello, I’m AS newbie and have problem.
I have text file with data:
name1, {10, 20, 30, 40}
name2, {30, 30, 10, 50}
name3, {40, 30, 20, 20}
name4, {50, 10, 50, 10}
I need read this file as list with first item as string and second item as list:
{“name1”, {10, 20, 30, 40}
“name2”, {30, 30, 10, 50}
“name3”, {40, 30, 20, 20}
“name4”, {50, 10, 50, 10}}
or better as nested list
{{“name1”, {10, 20, 30, 40}},
{“name2”, {30, 30, 10, 50}}
{“name3”, {40, 30, 20, 20}}
{“name4”, {50, 10, 50, 10}}}
I can’t convert second element to list. I always get strings.
Thanks
Browser: Firefox 2.0.0.2
Operating System: Mac OS X (10.4)