Hi! I developed some abstractions for reading/writing binary files, but they're somewhat limited in capability. They just load the data into a list of floats (one per byte), or save a list of floats to a file, and they read/write the entire file at once. They don't support repositioning within the file, or writing/reading a portion of the file. But if the files are relatively small, they might be suitable.
I can send them to you later if you're interested, I'm at work right now.
David.
Date: Tue, 8 Mar 2011 17:15:19 +0000 From: Jamie Bullock jamie@postlude.co.uk Subject: [PD] Read/write of raw binary data To: pd-list pd-list@iem.at Message-ID: CD7D3F69-AA06-4499-8472-F2C089406270@postlude.co.uk Content-Type: text/plain; charset=us-ascii
Hi all,
Does there exist an external for reading and writing raw binary data from file?
I tried with with [msgfile], which kind of works, but it doesn't give me an identical file if I read/write e.g. a JPEG.
Context: I have a student who works on 'glitching' images and video by editing the files in a text editor and the saving. He'd like to experiment with doing this dynamically in Pd.
Jamie