You will want to take a look at [textfile] in the main distro.
it allows you to save a text file, reading or writing to it one line at a time. The [textfile] object it self acts as an array of lists, until you either clear it or write to a file with it.
The documentation for it is pretty straight forward, but if you need any help feel free to ask. I just finished using it extensively for a pretty big patch.
m.
-----Original Message----- From: Daniel Hawthorn To: pd-list Sent: 6/30/2003 9:28 PM Subject: [PD] Saving list of strings to file?
Hi all,
I'm working on a drum sampler patch where I maintain a number of different samples. I would like to be able to save a list of filenames to a file for later loading up of a configuration. What would be the best way to do this? My thinking is, an array of strings would work, which I could just send a "write" or "read" message, but I don't know if
this is even possible. What is generally a good approach to doing this sort of thing in PD? Any help would be most appreciated.
-Daniel
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Scanned for viruses on 01 Jul 2003 03:51:50 No viruses found. Virus scanning by http://erado.com
Also [msgfile] in zexy is recommendable. It is an 'extended' version of [textfile] with more functions.
Cheers Soeren
Matthew Allen wrote:
You will want to take a look at [textfile] in the main distro.
it allows you to save a text file, reading or writing to it one line at a time. The [textfile] object it self acts as an array of lists, until you either clear it or write to a file with it.
The documentation for it is pretty straight forward, but if you need any help feel free to ask. I just finished using it extensively for a pretty big patch.