Assuming datafunctions to be installed, one can simply use a script like this:
// csv_read(fname) var fname, file, rowlist, collist; fname = argument0; file = file_text_open_read(fname); rowlist = ds_list_create(); while(!file_text_eof(file)){ collist = ds_list_create(); ds_list_add(rowlist, collist); str_to_list(file_text_read_string(file), ",", collist); file_text_readln(file); } file_text_close(file); return(rowlist);Above function opens and reads a csv file and returns a 2D ds_list structure; the list returned holds ds_list id's for the columns, these hold the actual values. To get the value from the third column (#2) of the second row (#1), you could use:var rows, columns, value; rows = csv_read(fname); columns = ds_list_get(rows,1); value = ds_list_get(columns,2); // value now is the value in the second row on the third column
Edit: Note, this was made on the fly, from scratch, in the past 10 minutes. To be useful, a function to "close" the csv file, eg remove the data structures involved, should be added, as well as a function to save as csv. Maybe I'll make an extension for it, why not.
Whoa...perfect! THANKS!



Find content
Male
