|
-
May 1st, 2006, 04:51 PM
#1
Thread Starter
Lively Member
Reading strings in Binary file
Hi, I have a file (.bin) that is compressed with the following information:
Color Food Color Food Color Food ............... (until end of file)
For each string, it'd be 10 bytes long. So I'd read the first 10 bytes, it'd be color1, next 10 bytes, it'd be food1, next 10 bytes, would be color2.... etc.
How do I:
Process and read the binary file, and for each item read, throw into a structure of array
VB Code:
Public Structure AboutFoods
Dim Color as String
Dim Food as String
End Structure
So I'd have an array for Color, an array for Food?
Thanks ....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|