help converting vb6 code to .net code(as i am using c# avoid plz putting specific vb words):

VB Code:
  1. Dim lRec As Long
  2. Dim fn As Integer
  3. fn = FreeFile
  4. MsgBox Len(lRec)
  5. Open Left(Drive, 1) & ":\track01.cda" For Random As #fn Len = Len(lRec)
  6. Get #fn, 7, lRec
  7. GetCD_ID1 = Hex$(lRec)
  8. Close fn
i am really needing this function and i dont seem to understand that vb6 commands...could anyone help me with this?