I know this sounds kinda boring, but.... In you're opinion, what is the best way to read/write?
I'm using:
Anyway, you get the Idea. So, how would I maximize my code If I wanted to Read/Write the Data From a User-Defined Type?Code:Sub LoadFile(sFileName as String) Dim Temp as String Open App.Path & "\vector\" & sFileName For Input As #1 Input #1, Temp Close #1 End Sub
This is what it's probably going to be:
(by the way, I have POINTAPI defined as well)Code:Option Explicit Public Enum vgfNodeType vgfLine = 0 vgfPolyLine = 1 vgfFilledPoly = 2 vgfInline = 3 End Enum Public Type RGBInfo R As Single G As Single B As Single End Type Public Type Node NodeType as vgfNodeType FilledColour As RGBInfo LineColour As RGBInfo LineStart() As POINTAPI LineEnd() As POINTAPI AntiAliased As Boolean End Type
So, my question is, what would be the best method for writing and reading the Node UDT?




Reply With Quote