[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: writing to binary files
- From: Merick <Merick_TeVaran@...>
- Date: Wed, 16 Apr 2008 16:15:57 -0500
Thanks guys, but neither of these is working for me. With both pack and
struct, if I try to write something the numbers that FreeBASIC reads
from the file are wrong. For instance, if I use a =
struct.pack("BHIL",1,2,3,4) and write it to a file, the numbers that are
returned from FB's "get" function are either (1, 2, 1027, 0) or (1, 768,
4, 0) depending on whether I try to read each number one at a time, or
all at once as a user defined type