the_net_2.0
Banned
- Local time
- Today, 00:12
- Joined
- Sep 6, 2010
- Messages
- 812
All,
I have a program that streams access data from tables into binary files using this code for I/O:
most of the I/O code will do something like this:
My question is: Access stores integer variables in memory as 2-byte signed integers. So how it this going into the binary file? Is it going as 2 bytes in size?
I am using the Hex Editor called UltraEdit to view the binary files after they're created. But I can't tell (mostly because I'm new to using it) how big these values are when they come in. UltraEdit detects file changes automatically, so I can stream data in and then refresh the file after every change to see these values populate in the binary file one by one. But the question still remains, how big, in bytes, is data coming in when it's transferred from Access memory?
The reason I need to know is simply because we have customer specs that tell us how big each piece of binary data is supposed to be when they receive the files and load them into a larger system.
Thanks!
I have a program that streams access data from tables into binary files using this code for I/O:
Code:
Open "c:\file.db" For Binary Access Write As #FileNum
most of the I/O code will do something like this:
Code:
dim Data as integer
Data = 5
Put #FileNum, , Data
My question is: Access stores integer variables in memory as 2-byte signed integers. So how it this going into the binary file? Is it going as 2 bytes in size?
I am using the Hex Editor called UltraEdit to view the binary files after they're created. But I can't tell (mostly because I'm new to using it) how big these values are when they come in. UltraEdit detects file changes automatically, so I can stream data in and then refresh the file after every change to see these values populate in the binary file one by one. But the question still remains, how big, in bytes, is data coming in when it's transferred from Access memory?
The reason I need to know is simply because we have customer specs that tell us how big each piece of binary data is supposed to be when they receive the files and load them into a larger system.
Thanks!