Re: [PD] get lines from textfile
Jack schrieb: Maybe with this objects : [until], [spigot], [select] or [==]. Or you can use [msgfile] with the message [goto(. ++ Jack Le 22 avr. 09 à 13:21, potax flan a écrit : did something like that as abstractions, see attached files. readlines reads all lines of a file + amount of lines readline reads single lines of a file when banged + amounts of lines when end of file is reached. ; artin readline.pd Description: application/puredata readlines.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] get lines from textfile
Maybe with this objects : [until], [spigot], [select] or [==]. Or you can use [msgfile] with the message [goto(. ++ Jack Le 22 avr. 09 à 13:21, potax flan a écrit : i'm trying to read an XML file and get certain lines, using [textfile] but i'm stuck as i dont know what message to send it to retrieve the lines i want maybe there's a better object for the job? best p ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] get lines from textfile
try msgfile from zexy, if you are with pd-extended. if not this is not easy done. you need to know the amount of lines you have in your textfile. with this amount you "flush" it from the begin till the end with until (think about the untiljoke: never ever start it without a number). with select´s "your desired phrase" bang you stop the until on its right inlet. and voila, here on the right outlet of select shoul be the rest of the line. if until is too fast to stop try it with a feedbacked delay. all the best der.brandt > i'm trying to read an XML file and get certain lines, using [textfile] but > i'm stuck as i dont know what message to send it to retrieve the lines i > want > maybe there's a better object for the job? > best > p > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] get lines from textfile
i'm trying to read an XML file and get certain lines, using [textfile] but i'm stuck as i dont know what message to send it to retrieve the lines i want maybe there's a better object for the job? best p ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list