list= {{}, {200, 200, 200}, {}, {201, 201}};
Export["list.csv", {list}, "csv"]
data = Import["lnumber.csv", "csv"];
The result of this export and import is an extra curly bracket.
(* data -> {{{}, {200, 200, 200}, {}, {201, 201}}} *)
(Note:without " "in output).
However, I want {200, 200, 200, 201, 201}
.
Flatten[data]
doesn't give the desired result.
One way to overcome the problem is to Flatten[list]
before exporting.
But, I want to Flatten[data]
to get the desired result.