title: How to read a file from the x line in .NET
body: <p>I read a file from the file system and FTP it to an FTP server. I now have a request to skip the first line (it's a CSV with header info). I think I can somehow do this with the Offset of the stream.Read method (or the write method) but I am not sure how to translate the byte array offset from a single line.</p>
  
  <p>How would I calculate the offset to tell it to only read from the 2nd line of the file?</p>
  
  <p>Thanks</p>
  
  <pre><code>// Read the file to be uploaded into a byte array
          stream = File.OpenRead(currentQueuePathAndFileName);
          var buffer = new byte[stream.Length];
          stream.Read(buffer, 0, buffer.Length);
          stream.Close();
  
          // Get the stream for the request and write the byte array to it
          var reqStream = request.GetRequestStream();
          reqStream.Write(buffer, 0, buffer.Length);
          reqStream.Close();
          return request;
  </code></pre>