[PD] Reading and writing binary files
Mathieu Bouchard
matju at artengine.ca
Sat Feb 26 01:56:44 CET 2011
On Fri, 25 Feb 2011, David wrote:
> It's probably very obvious, but I can't figure out how to read and write
> files containing arbitrary binary data. I know there are objects for
> reading and writing sound files, and there's [textfile] for reading text
> files, but I want to read and write binary files, and interpret each
> byte as a 16-bit integer. Does anyone have an example I can look at?
> Since they will be small files, I just need to read them sequentially, I
> don't need to jump around in the file randomly.
use [#in grid myfilename.zzz, headerless, type s]
see http://gridflow.ca/help/%23io.grid-help.html
and http://gridflow.ca/help/%23in-help.html
and http://gridflow.ca/help/%23out-help.html
_______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
More information about the Pd-list
mailing list