Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21887

Outputting an Array

$
0
0
I have this array:

Names(1).FirstName = "Mark"
Names(1).MiddleInit = "J"
Names(1).LastName = "Henry"

And then I write it out to a file:

Open App.Path & "\Names.txt" For Binary As #1
Put #1, 1, Names(1)
Close #1

When I look at the hex dump of the out put file I see this:

04 00 4D 61 72 6B 01 00 4A 05 00 48 65 6E 72 79

Each field from the array is preceeded by the length of each field. I do not want this; how can I write the array to a file without the lengths?

Viewing all articles
Browse latest Browse all 21887

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>