Re: [PD] Looking for a way to add bytes to beginning of a file using [binfile]

2012-09-23 Thread Antonio Roberts
If anyone is interested I wrote a tutorial on using [binfile] to create jpg images using only Pure Data http://www.hellocatfood.com/2012/09/23/create-jpgs-in-pure-data/ On 22 September 2012 18:02, Antonio Roberts anto...@hellocatfood.com wrote: After some experimenting I solved the problem. I

Re: [PD] Looking for a way to add bytes to beginning of a file using [binfile]

2012-09-22 Thread Jamie Bullock
On 20 Sep 2012, at 17:33, Antonio Roberts anto...@hellocatfood.com wrote: I'm attempting to use [binfile] to add additional bytes to a file. If I first read the file - using [read( - and then specify the write position - [writeat 0 ( - when I add bytes they _overwrite_ the already existing

Re: [PD] Looking for a way to add bytes to beginning of a file using [binfile]

2012-09-22 Thread Antonio Roberts
After some experimenting I solved the problem. I first add the bytes that I want to add. I then use a second [binfile] object and use a loop ( [bang( / [until] ) to send each byte to the other [binfile]. This adds bytes instead of overwriting. On 22 September 2012 11:41, Jamie Bullock

[PD] Looking for a way to add bytes to beginning of a file using [binfile]

2012-09-20 Thread Antonio Roberts
I'm attempting to use [binfile] to add additional bytes to a file. If I first read the file - using [read( - and then specify the write position - [writeat 0 ( - when I add bytes they _overwrite_ the already existing bytes instead of adding new ones. Previously I have used one [binfile] object