Reading and writing binary files

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Contact:

Reading and writing binary files

Post by Nonsanity » Wed Apr 09, 2008 6:53 pm

Revolution seems to have support for reading in binary files (though they are turned into strings of comma separated chunks) but the write doesn't seem to be able to output binary.

Am I missing something, or is Revolution?


(Task: Read in a binary file, and write most of it back out to a new file, skipping some parts of the data, changing others.)
~ Nonsanity
~ Chris Innanen

Nonsanity
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 86
Joined: Thu May 17, 2007 9:15 pm
Contact:

Post by Nonsanity » Wed Apr 09, 2008 6:58 pm

My bad. Don't read the data in a chunks, is the key. Duh.

read from file F for X
write it to file F2

That works just fine. So... Nevermind! :D
~ Nonsanity
~ Chris Innanen

Post Reply