title: How to populate an array from text file in Visual Basic for PowerPoint 2010
body: <p>I'd like to define an array like:</p>
  
  <pre><code>sample_array = Array( _
  "foo", _
  "bar", _
  ...
  "dog", _
  "cat" _
  )
  </code></pre>
  
  <p>...in a macro written in VB for Applications (PowerPoint 2010 in this case), but I need to define the array from a text file that would just be formatted like:</p>
  
  <pre><code>foo
  bar
  ...
  dog
  cat
  </code></pre>
  
  <p>What is the simplest way to define a text file path and read the values (assume they are always regular ascii strings) directly into an array?</p>
  
  <p>Thanks!</p>