title: Flat file source with EzApi
body: <p>Does anyone have any examples of using EzAPI with a flat file as the data source?  All the examples in the documentation start with OleDB connections.</p>
  
  <p>Specifically I can't work out how to define input and output columns.</p>
  
  <p>Say, for instance, that I have a CSV file with columns for firstname, surname and age.  I want to read this into SSIS, sort by age and write out to another text file.</p>
  
  <p>According to this post <a href="https://stackoverflow.com/questions/3620927/how-to-use-ezapi-flatfile-source-in-ssis">How to use EzAPI FlatFile Source in SSIS?</a> I need to define columns manually, but I can't get the suggested code to work.  </p>
  
  <p>If I do:</p>
  
  <pre><code>if (!pkg.Source.OutputColumnExists("col0"))
  {
  
         pkg.Source.InsertOutputColumn("col0");
  
  }
  
  bool newColumnExists = pkg.Source.OutputColumnExists("col0");
  </code></pre>
  
  <p>newColumnExists is still false.</p>