Thanks for your help. It took me a while to figure out how 'list append' works, but I finally managed to get it working. I've attached the patch (intended to be used as an abstraction, invoked from another patch, which returns the data read from the file in a list).
I have another question, though. How do the files get closed? When you exit PureData? Does that mean that every time you open a file, another system file handle is used and not released until you exit PureData? Or is there some way to explicitly close the file and release the file handle, buffers, etc.? David.
#N canvas 547 65 462 532 10; #X obj 121 238 mrpeach/binfile; #X msg 102 168 read \$1; #X obj 102 127 openpanel; #X obj 217 19 inlet; #X obj 34 312 until; #X obj 34 220 t b; #X obj 230 382 t l; #X obj 175 335 list prepend; #X obj 105 352 t b; #X obj 105 415 list append; #X obj 105 482 outlet; #X obj 217 64 t b l; #X connect 0 0 7 0; #X connect 0 2 4 1; #X connect 0 2 8 0; #X connect 1 0 0 0; #X connect 1 0 5 0; #X connect 2 0 1 0; #X connect 3 0 11 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 7 1; #X connect 7 0 6 0; #X connect 7 0 9 1; #X connect 8 0 9 0; #X connect 9 0 10 0; #X connect 11 0 2 0; #X connect 11 1 7 1;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
