This is a multi-part message in MIME format.
--------------25E540AB75BDF1FC1303CA24
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
>>> calcsize('hd')
16
>>> calcsize('dh')
10
That seems like a bug to me. BTW: it won't convert
>>> unpack('dh', s[-10:])
(2.47032822921e-323, 16424)
>>> unpack('hd', s[-10:])
Traceback (innermost last):
File "<stdin>", line 1, in ?
struct.error: unpack str size does not match format
Does anyone know how to unpack a bin file written in VB:
Fno = FreeFile
Open CDir & Fn & "." & cdte For Binary As #Fno
Put #Fno, , xMat
where xMat is same as x created by?
Dim x(4, 3) As Double
'This code example opens the file in Binary mode for reading; other
processes can't read file.
For r = 0 To UBound(x, 1)
For c = 0 To UBound(x, 2)
x(r, c) = r * c
Next c
Next r
--
*****************************************************************************
S. Hoon Yoon (Quant) Merrill Lynch Equity Trading,
yelled@yahoo.com hoon@bigfoot.com(w)
"Miracle is always only few standard deviations away, but so is
catastrophe."
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages." Mauldin
*****************************************************************************
--------------25E540AB75BDF1FC1303CA24
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hoon Yoon
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Hoon Yoon
n: ;Hoon Yoon
email;internet: hyoon@bigfoot.com
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------25E540AB75BDF1FC1303CA24--
--------------25E540AB75BDF1FC1303CA24
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
>>> calcsize('hd')
16
>>> calcsize('dh')
10
That seems like a bug to me. BTW: it won't convert
>>> unpack('dh', s[-10:])
(2.47032822921e-323, 16424)
>>> unpack('hd', s[-10:])
Traceback (innermost last):
File "<stdin>", line 1, in ?
struct.error: unpack str size does not match format
Does anyone know how to unpack a bin file written in VB:
Fno = FreeFile
Open CDir & Fn & "." & cdte For Binary As #Fno
Put #Fno, , xMat
where xMat is same as x created by?
Dim x(4, 3) As Double
'This code example opens the file in Binary mode for reading; other
processes can't read file.
For r = 0 To UBound(x, 1)
For c = 0 To UBound(x, 2)
x(r, c) = r * c
Next c
Next r
--
*****************************************************************************
S. Hoon Yoon (Quant) Merrill Lynch Equity Trading,
yelled@yahoo.com hoon@bigfoot.com(w)
"Miracle is always only few standard deviations away, but so is
catastrophe."
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages." Mauldin
*****************************************************************************
--------------25E540AB75BDF1FC1303CA24
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hoon Yoon
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Hoon Yoon
n: ;Hoon Yoon
email;internet: hyoon@bigfoot.com
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------25E540AB75BDF1FC1303CA24--