M
Mike
How can i convert this vb.net code to C#,
Dim queueFile As StreamReader
Try
queueFile = File.OpenText("c:\Queue.txt")
Me.txtQueue.Text = queueFile.ReadToEnd
Catch exc As Exception
MsgBox("File could not be read." + vbCrLf + _
"Please verify file C:\Queue.txt has" + _
"has been created on you computer.")
Finally
If Not queueFile Is Nothing Then
queueFile.Close()
End If
End Try
Dim queueFile As StreamReader
Try
queueFile = File.OpenText("c:\Queue.txt")
Me.txtQueue.Text = queueFile.ReadToEnd
Catch exc As Exception
MsgBox("File could not be read." + vbCrLf + _
"Please verify file C:\Queue.txt has" + _
"has been created on you computer.")
Finally
If Not queueFile Is Nothing Then
queueFile.Close()
End If
End Try