[PD] forcing array size based on text file size

Jim Ruxton jim.ruxton at gmail.com
Fri Apr 6 10:38:11 CEST 2018


I am reading a text file into an array. I would have expected the array 
size to grow to the same as the number of lines/elements in the text 
file but it seems to default to a size of 100. Is there a way for the 
size of the array to take on the size of the text file automatically? If 
not how do I get the number of lines in the text file so I can resize 
the array accordingly?

Thanks,

Jim




More information about the Pd-list mailing list