title: How do I use FileOpen (VB.NET) in C#?
body: <p>So, I'm working on converting this code from VB.NET to C#:</p>
  
  <pre><code>    Public Class Form1
      Const filesplit As String = "|split|"
      Dim stub, opt() As String
  
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          On Error Resume Next
          FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared)
          stub = Space(LOF(1))
          FileGet(1, stub)
          FileClose(1)
          opt = Split(stub, filesplit)
  
      End Sub
  End Class
  </code></pre>
  
  <p>I've used a series of online converters, and they don't really work for me.</p>
  
  <p>How do I do it? I'm trying to understand VB.NET source code so I can use it in.</p>