function readCaseColCSV
extends Modelica.Icons.Function;
input String fileName "CSV file name" annotation(
Dialog(loadSelector(filter = "Comma separated values (*.csv)", caption = "CSV data file")));
input Integer header = 2 "Number of header rows";
input Integer margin = 2 "Number of left margin columns";
input String delimiter = "\t" "Delimiter of CSV file";
input Boolean useQuotedStrings = false "Use quoted strings, if true";
input Boolean cache = false "Read file before compiling, if true";
input String name "Name of header string be searched";
input Integer headerRow = 1 "Header row index for searching name";
output Real val[readRowsCSV(fileName = fileName, delimiter = delimiter, cache = cache) - header] "Real vector extracted from data matrix";
end readCaseColCSV;