Page 1 of 1

Reading and writing binary files

Posted: Wed Apr 09, 2008 6:53 pm
by Nonsanity
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.)

Posted: Wed Apr 09, 2008 6:58 pm
by Nonsanity
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