> On 2015-06-29, at 06:05, Juergen Sauermann <[email protected]> > wrote: > > Hi Alex, > > thanks for offering this. I would change a few things to make that code even > more useful: > > - make the separator an (ideally optional) left argument of ReadTableData. > Many data files are written in CSV (comma separated values) format which > uses comma instead of space,
I would also add Tab Delimited, a very common format > - and maybe make it work for > 2 columns (by guessing the number of columns > from the first line in the file). May I suggest counting the number of delimiters + 1 in the line, as the number of columns? Also, some programs produced “Quoted Data” in CSV files, to get around the fact that data may contain commas. Like this: “Item 1”,”Item 2 has a , in it”,”Item 3” A bit tougher to parse… > > /// Jürgen > > > > On 06/27/2015 11:26 PM, [email protected] > <mailto:[email protected]> wrote: >> Hi Bug-apl, >> I am soliciting feedback (as per the process) of the attached APL code that >> will take a file that has a layout of two columns (space separator) and >> return a matrix. >> >> -Alex > --- Louis Chrétien [email protected]
