Thanks, that worked perfectly! Antonio
On 11 November 2012 20:26, Jonathan Wilkes <jancs...@yahoo.com> wrote: > Pd automatically interprets the spaces as delimiters for > atoms, so you can use [list split 1] in a recursive loop > (or iterative loop using [until] if the lines are really long, > like hundreds of words), to split the line into a bunch > of atoms. > > Or send the line of text to: > [list-abs/list-drip] > from the list-abs library > to split out into floats and symbols > automatically. > > -Jonathan > > > > > ----- Original Message ----- >> From: Antonio Roberts <anto...@hellocatfood.com> >> To: PD List <pd-list@iem.at> >> Cc: >> Sent: Sunday, November 11, 2012 3:14 PM >> Subject: [PD] Read individual words from a text file >> >> Is there a way to read individual words from a text file? I've tried >> using [msgfile] and [textfile] but they can only read lines. I know >> that you can define a carriage return as a delimiter but is there a >> way to use a space as one? >> >> Thanks >> >> Antonio >> >> -- >> ============================ >> anto...@hellocatfood.com >> http://www.hellocatfood.com >> ============================ >> >> _______________________________________________ >> Pd-list@iem.at mailing list >> UNSUBSCRIBE and account-management -> >> http://lists.puredata.info/listinfo/pd-list >> -- ============================ anto...@hellocatfood.com http://www.hellocatfood.com ============================ _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list