At some of the recent NYCJUGs, Ken Lettow pointed me to the "dsv" versions of this which are more general ("Delimiter-Separated Values"). I use these now as I usually prefer tab-delimited files and want to avoid the spurious double-quotes the "csv" modules put around data. See http://www.jsoftware.com/jwiki/Addons/tables/dsv?highlight=%28dsv%29 .
On Mon, Jan 2, 2012 at 12:59 PM, Tom Szczesny <tav...@gmail.com> wrote: > When I try require 'csv' I get > not found: /home/tom/jgplsrc/j/addons/tables/csv/csv.ijs > > However, I can get to > http://www.jsoftware.com/jwiki/Addons > I should be able to get what I need from there. > > Thanks. > > > On Mon, Jan 2, 2012 at 12:38 PM, Raul Miller <rauldmil...@gmail.com> > wrote: > > > Try this: > > > > require 'csv' > > > > T=: readcsv '/home/tom/t.csv' > > > > -- > > Raul > > > > On Mon, Jan 2, 2012 at 12:22 PM, Tom Szczesny <tav...@gmail.com> wrote: > > > Some languages, like q, have a built-in command for reading, parsing, > and > > > loading data from csv files: > > > t: ("SSDIDSSIFFFIS";enlist ",") 0: `:/home/tom/t.csv > > > > > > Other languages, like a+, do not, and the user needs to write a > function > > to > > > read, parse and load data from csv files. > > > > > > From a cursory review, it appears that j is in the a+ camp. > > > Please confirm that such a facility does not exist in j, before I start > > > writing my own. > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm