title: I must be missing something - semicolon error that makes no sense
body: <p>This is the source of my page. I'm getting a mysterious CS1002 error. Been looking at this for awhile now and can't figure it out.</p>
  
  <pre><code>&lt;%@ Page language="C#" validateRequest=false %&gt;
  &lt;%@ Import Namespace="System.IO" %&gt;
  &lt;%@ Import Namespace="System.Text" %&gt;
  &lt;%@ Import Namespace="System.Threading" %&gt;
  &lt;script language="C#" runat="server"&gt;
  
  private void Page_Load (object sender, System.EventArgs e)
  {
  System.IO.Stream str; String strmContents;
  Int32 counter, strLen, strRead;
  // Create a Stream object.
  str = Request.InputStream;
  // Find number of bytes in stream.
  strLen = Convert.ToInt32(str.Length);
  // Create a byte array.
  byte[] strArr = new byte[strLen];
  // Read stream into byte array.
  strRead = str.Read(strArr, 0, strLen);
  writeFile(strArr, "images/test.png");
  }
  
   public void writeFile (byte[] data, String fileName)
  {
  FileStream out = new FileStream(fileName, FileMode.Open);
  out.write(data);
  out.close();
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>It's complaining about a semicolon being expected</p>
  
  <pre><code>Compiler Error Message: CS1002: ; expected
  
  Line 24:    FileStream out = new FileStream(fileName, FileMode.Open);
  </code></pre>