i have the Following vb.net 2008 Code i am needing the same functionality in c++ any help would be appreciated.
Public Sub New()
Try
If ORIHoles Is Nothing Then
ReDim ORIHoles(49)
Dim ff As Integer = FreeFile()
Dim tempstr As String
Dim atempstr() As String
FileOpen(ff, "postable.c sv", OpenMode.Input, OpenAccess.Read , OpenShare.Share d)
Do While Not EOF(ff)
tempstr = LineInput(ff)
atempstr = tempstr.Split(" ,")
If atempstr.GetUpp erBound(0) = 2 Then
ORIHoles(CInt(a tempstr(0))).An gle = CDbl(atempstr(1 ))
ORIHoles(CInt(a tempstr(0))).Hy pot = CDbl(atempstr(2 ))
End If
Loop
FileClose(ff)
End If
Catch ex As Exception
GeneralErrorHan dler(ex.ToStrin g)
End Try
End Sub
Public Sub New()
Try
If ORIHoles Is Nothing Then
ReDim ORIHoles(49)
Dim ff As Integer = FreeFile()
Dim tempstr As String
Dim atempstr() As String
FileOpen(ff, "postable.c sv", OpenMode.Input, OpenAccess.Read , OpenShare.Share d)
Do While Not EOF(ff)
tempstr = LineInput(ff)
atempstr = tempstr.Split(" ,")
If atempstr.GetUpp erBound(0) = 2 Then
ORIHoles(CInt(a tempstr(0))).An gle = CDbl(atempstr(1 ))
ORIHoles(CInt(a tempstr(0))).Hy pot = CDbl(atempstr(2 ))
End If
Loop
FileClose(ff)
End If
Catch ex As Exception
GeneralErrorHan dler(ex.ToStrin g)
End Try
End Sub
Comment