Writing to and from a binary file?
Mark Schonewille
m.schonewille at economy-x-talk.com
Fri Jul 22 18:31:14 EDT 2011
Hi Keith,
This is standard stuff.
on example
answer file "Select a binary file..."
if it is not empty then
put it into myFile
open file myFile for binary read
read from file myFile until EOF
put it into myData
close file myFile
// do something with the data below this line
end if
end example
Instead of open, read, close you can also use:
put url ("binfile:" & myFile) into myData
Open/read/close gives you more control, but put url seems more straightforward (and less lines)
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce
On 23 jul 2011, at 00:17, Keith (Gulf Breeze Ortho Lab) wrote:
> Thanks Mark. Would you happen to know of any examples out there especially for binary files?
More information about the use-livecode
mailing list