Hello,
I am trying to read a single line text file into a user defined structure. The content is variable in length, but is always the same format. Here's the Structures definition I came up with:
So the first 5 fields in the text file are the first 5 fields in the structure "rectype", and following that, will be one or more "basetype". Everything is comma delimited.
Of course, I could manually parse through the one line, with a loop, until I reach the end of the line, but I was hoping there was an easier way than that. Anyone have a better idea? Point me in the right direction?
thanks!!
Cheers,
Realm174
I am trying to read a single line text file into a user defined structure. The content is variable in length, but is always the same format. Here's the Structures definition I came up with:
Code:
Structure basetype
Dim dep As String
Dim arr As String
Dim alt As String
Dim rf As String
Dim fno As String
Dim icao As String
End Structure
Structure rectype
Dim ac As String
Dim id As String
Dim perc As String
Dim dur As String
Dim fr As String
Dim bases As basetype()
End Structure
So the first 5 fields in the text file are the first 5 fields in the structure "rectype", and following that, will be one or more "basetype". Everything is comma delimited.
Of course, I could manually parse through the one line, with a loop, until I reach the end of the line, but I was hoping there was an easier way than that. Anyone have a better idea? Point me in the right direction?
thanks!!
Cheers,
Realm174