oacs_util::csv_foreach (public)
oacs_util::csv_foreach -file file [ -header_line header_line ] \ [ -override_headers override_headers ] -array_name array_name \ code_block
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Reads a CSV string and executes code block for each row in the CSV.
- Switches:
- -file
(required)- the CSV file to read.
- -header_line
(defaults to"1"
) (optional)- the line with the list of var names
- -override_headers
(optional)- the list of variables in the CSV
- -array_name
(required)- the name of the array to set with the values from the CSV as each line is read.
- Parameters:
- code_block
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- csv_foreach