I want to use Asymptote for making some pictures in Latex. These pictures are to be generated using input files which are in csv format. The files have variable columns and typically look like this (shortened for clarity)
"A", 1, 2, 3
"B", 5, 2, 1, 6, 6
"C", 3, 8
...
Is it possible to read the file line-by-line, assimilating the data in each row into data-structures inside Asymptote code?
file in1=input(filename1).line().csv();which seems to be doing what you are asking. Of course, if you have a specific task that is to be done with the data one may more easily write an explicit answer. – Oct 11 '19 at 02:35