[PD] textfile insert and delete

Roman Haefeli reduzierer at yahoo.de
Sun May 29 21:51:33 CEST 2005


hi


thewade wrote:

> Hi again my favorite list!
>
> I was wondering if there was an easier way to insert and
> delete single entries from a textfile/qlist list?
>
> As of now I do the following have a main textfile and a
> temporay textfile. To insert or delete an entry I step
> through each of the entries in the main textfile and add
> thoes to the temp textfile. If I am deleting an entry I
> skip copying that entry into the temp textfile. If I am
> inserting an entry I add it to the temp textfile at the
> appropriate place. once all entries have been copied
> from the main to the temp textfile I clear the main file,
> read the values back from the temp textfile into the main
> textfile, and clear the temp textfile.
>
> It would be so much easier and less computationaly
> intensive to do an insert and delete within the c code,
> wouldnt it?

yes, i think so. i assume thats why zmoelnig implemented [msgfile] in
zexy, which has all the features mentioned above (and a lot more).

cheers
roman



	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de




More information about the Pd-list mailing list