title: Process a file using Azure Function
body: <p>I would like to process an input file and output it to some location for ex. FTP or Azure storage. I am trying to use Azure Function with SaasFile input/output.  I am getting below error:</p>
  
  <p><code>2016-07-14T00:44:53  Welcome, you are now connected to log-streaming service.
  2016-07-14T00:45:00.580 Script for function 'HttpTriggerCSharp1' changed. Reloading.
  2016-07-14T00:45:00.580 Compiling function script.
  2016-07-14T00:45:00.721 run.csx(24,25): error CS0622: Can only use array initializer expressions to assign to array types. Try using a new expression instead.
  2016-07-14T00:45:00.721 Compilation failed.</code></p>
  
  <p>Here is my function signature:</p>
  
  <pre><code>public static async Task&lt;HttpResponseMessage&gt; Run(HttpRequestMessage req, string output, TraceWriter log)
  </code></pre>
  
  <p>Bindings:</p>
  
  <pre><code>{
    "bindings": [
      {
        "authLevel": "function",
        "name": "req",
        "type": "httpTrigger",
        "direction": "in"
      },
      {
        "name": "res",
        "type": "http",
        "direction": "out"
      },
      {
        "type": "apiHubFile",
        "name": "output",
        "path": "path/{file}",
        "connection": "ftp_FTP",
        "direction": "out"
      }
    ],
    "disabled": false
  }
  </code></pre>
  
  <p>I think I am missing something in Run signature. I couldn't find it on <a href="https://azure.microsoft.com/en-us/documentation/articles/functions-bindings-storage/" rel="nofollow">Azure documentation</a>. </p>
  
  <p>I need help figure out how to process using FTP and Azure Storage. Thanks for your help. </p>