
13 Apr
2005
13 Apr
'05
2:52 a.m.
Hi, does anyone have a small but complete example on how to read a (portion of) a binary file, like r/w the header of a Midi-file? It seems like readBinaryFile (ans writeBinaryFile) is deprecated and I should use hGetBuf (and hPutBuf), but what is this Ptr thing? How would I implement readBinaryFile using hGetBuf? Best/ Bo Herlin