title: Modelica vector parameters from a file
body: <p>Is it possible to read a vector of parameters from a file? 
  I'm trying to create a vector of objects, such as shown here:  <a href="https://modelica.org/events/Conference2003/Modelica03-AdvancedTutorial.pdf" rel="nofollow">enter link description here</a> starting on page 49.  However, I would like to pull the specific resistance and capacitance values from a text file.  (I'm actually just using this as an example for how to read it in).<br>
  So,  the example fills in data like this:</p>
  
  <pre><code>A.Basic.Resistor  R[N + 1](R = vector([Re/2; fill(Re,N-1); Re/2]) );
  A.Basic.Capacitor C[N](each C = c*L/N);
  </code></pre>
  
  <p>But, instead I have a text file that contains something like, where the first column is the index, the second is the R values and the third is the C values:</p>
  
  <pre><code>#1
  double test1(4,3)   #First set of data (row then col)
  1.0 1.0 10.0
  2.0 2.0 30.0
  3.0 5.0 50.0
  4.0 7.0 100.0
  </code></pre>
  
  <p>I know that I can read this data in using a CombiTable1D or CombiTable2D. But, is there a way to  essentially convert each column of data to a vector so that I can do something analogous to:</p>
  
  <pre><code>ReadInTableFromDisk
  A.Basic.Resistor  R[N + 1](R = FirstDataColumnOfDataOnDisk );
  A.Basic.Capacitor C[N](each C = SecondDataColumnOfDataOnDisk);
  </code></pre>