VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
File Saving/Loading in Binary cuzzle (3 replies, 0 views) (2001-Mar-31) I am saving and loading multiple arrays using binary format and get and put. I have run into problems though. When I save files in binary, then load them, the data is all messed up. Its the same messed up data each time I save and load the file. Here is the code:
Open App.Path & "\..\maps\Eastin.map" For Binary As #1
Put #1, 1, MapInfo
Put #1, 2, Map
Close #1
That saves the map, and this loads it:
Open App.Path & "\..\maps\Eastin.map" For Binary As #1
Get #1, 1, MapInfo
Get #1, 2, Map
Close #1
and every time, the data is corrupt. For example, when I entered some integers into the arrays, and loaded them back up, I got totally different numbers. Can anyone help?
|