Hello Scripter,
i have a textfile with a few thousand records. They are all generated by another script. The output was a list that was stored in the txt file for performance reasons (it took several minutes to generate the list by spliting and matching).
If I read in the content of the textfile I get a long string with all quotes escaped. Like this:
string after reading contents of the .txt file
"{{\"2014\", \"1\", \"149x\", \"149\"}, {\"2014\", \"2\", \"150x\", \"150\"}, {\"\", \"\", \"\", \"\", \"\", \"\", \"\"}, {\"2015\", \"3\", \"151b\", \"177\"}, {\"2015\", \"4\", \"152a\", \"178\"}, {\"2015\", \"5\", \"153\", \"179\"}, {\"2015\", \"6\", \"154x\", \"180\"}, {\"2015\", \"6A\", \"154y\", \"180a\"}"
But what I need is again a list of lists. How can i process this to ge back the original list with the containing listitems as strings?
a list of lists is what I need again. Like this:
{{"2014", "1", "149x", "149"}, {"2014", "2", "150x", "150"}, {"", "", "", "", "", "", ""}, {"2015", "3", "151b"}, {"2015", "4", "152a", "178"}, {"2015", "5", "153", "179"}, {"2015", "6", "154x", "180"}, {"2015", "6A", "154y", "180a"}}