.KeyWordIO.readStringCSV

Information

This functions reads an array from a CSV file and returns a matrix of equal size. The array size of the CSV file is specified by the integers


File format

Interface

function readStringCSV
  extends Modelica.Icons.Function;
  input String fileName "CSV file name" annotation(
    Dialog(saveSelector(filter = "Comma separated values (*.csv)", caption = "CSV data file")));
  input Integer rowBegin = 1 "First row of CSV array";
  input Integer rowEnd = rowBegin "End row of CSV array";
  input Integer colBegin = 1 "First column of CSV array";
  input Integer colEnd = colBegin "End column of CSV array";
  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";
  output String matrix[rowEnd - rowBegin + 1, colEnd - colBegin + 1] "Matrix read from CSV file";
end readStringCSV;

Generated at 2019-09-22T01:36:51Z by OpenModelicaOpenModelica 1.14.0~dev-26741-gf7ba6ee using GenerateDoc.mos