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?
Thanks for the help with my settings automation patch! -thewade
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
Try using pool instead of qlist, textfile.
Much more control, hierachies, and maybe too many options. ;)
B>
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?
Thanks for the help with my settings automation patch! -thewade
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list