Process a comma-separated value
(CSV) file
(typically, a file containing row-column data or metadata)
through a Tefigel processor (subroutine).
Process a CSV file through a user-defined CSV subroutine (a
Tefigel script):
[call] csv_file_process(<CSV-file>,<CSV-subroutine>,<value-separator>)
The built-in subroutine csv_file_process reads the
<CSV-file> and processes each line of its contents through the
user-defined Tefigel script <CSV-subroutine>.
Both <CSV-file>
and <CSV-subroutine> are specified as <file-reference>'s.
Parameter <value-separator> specifies the character separating
each value in each line of <CSV-file>.
When processing <CSV-file>, Tefigel calls for each input line
the specified <CSV-subroutine> passing the input line as
a <parameter-list>, so that each value from the
input line appears as a distinct input argument to the <CSV-subroutine>.
Tefigel automatically sets the <special-function> argdelim
to <value-separator>.
[Previous chapter]
[Next chapter]
[Back to top]
|