Scripts for reading and writing binary files

Michael Kann mikekann at
Fri Dec 16 11:16:53 CST 2011


It might be helpful to extract any ASCII text which is embedded in the binary. Then you can see what kind of file you're working with. 


Standard MIDI music files have the ASCII code for "MThd" (4D 54 68 64)

Overview here:

Thanks again,


--- On Fri, 12/16/11, Alejandro Tejada <capellan2000 at> wrote:

From: Alejandro Tejada <capellan2000 at>
Subject: Re: Scripts for reading and writing binary files
To: use-revolution at
Date: Friday, December 16, 2011, 9:26 AM

Hi Michael,

Michael Kann wrote
> Extremely useful. Thanks.

You are welcome!

I received the request to include a function for
alerting about the file size, before opening it.

Additional ideas to make this more useful?


View this message in context:
Sent from the Revolution - User mailing list archive at

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list