section of routines in textload.i

functions in textload.i -

 
 
 
text_cells


             text = text_cells(filename, delim)  
 
     returns a 2D array of strings containing the spreadsheet data  
     in FILENAME.  FILENAME can be comma separated values (.csv),  
     or tab-delimited columns.  DELIM is the field delimiter character,  
     which can be omitted to get the following default behavior:  
     1. If FILENAME ends in ".csv" (any case), DELIM = ",".  
     2. If the file contains any tab characters, DELIM = "\t".  
     3. Otherwise, DELIM = ",".  
     If DELIM = ",", an attempt is made to conform with.csv format  
     conventions with respect to quoted fields.  
     The quote= keyword controls whether or not to exclude field  
     separators (delim or newline) enclosed in "...".  The default  
     is quote=1 (yes) for DELIM=",", otherwise quote=0 (no).  
SEE ALSO: text_lines,   text_load  
 
 
 
text_lines


             string_array = text_lines(filename)  
 
     returns string array representing the text file FILENAME, one  
     string per line.  Unlike rdline, text_lines handles old Mac and  
     Windows/DOS end-of-lines correctly.  
SEE ALSO: text_cells,   text_load  
 
 
 
text_load


             char_array = text_load(filename)  
 
     returns char array representing the text file FILENAME.  If FILENAME  
     contains old Mac OS CR end-of-line characters, or Windows/DOS CRLF  
     end-of-line sequences, these are converted to the single LF UNIX  
     end-of-line.  Adds final newline if not present.  
SEE ALSO: text_lines,   text_cells