Read number of columns from CSV file
function readColsCSV extends Modelica.Icons.Function; input String fileName "CSV file name" annotation( Dialog(loadSelector(filter = "Comma separated values (*.csv)", caption = "CSV data file"))); input String delimiter = "\t" "Delimiter of CSV file"; input Boolean cache = false "Read file before compiling, if true"; output Integer col "Number of columns"; end readColsCSV;