<div dir="ltr"><div><div><div><div><div><div><div>Hello  Jack,<br><br></div>Yes [text] is great, but I'm currently using tables/arrays that I want to be stored on filesystem.<br></div>I actually can [read array.txt ( containing an array (i.e. a list of floats) with [text], and the whole array is loaded as a list on first line, but I'm concerned about performance while loading/parsing data.<br></div><br>Then this would mean using :<br><br>  [0 $1 1 (<br>   |<br></div>  [text get dataAsText]<br><br></div>instead of :<br></div><br>  [$1 (<br>   |<br></div>  [tabread dataAsArray]<br><div><div><div><div><div><div><br></div><div>I will give this solution a try, but I'm using quite large tables (more than 10,000 float values)... do you think it's as fast as [tabread] ?<br><br></div><div>(PS : I'm also looking for a way to know if a specified file (giving its path) exists or not. I did this once with the [shell] external, but I would prefer a vanilla solution...)<br><br></div><div>have a nice day,<br><br></div><div>Raphaël<br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-06 18:08 GMT+02:00 Jack <span dir="ltr"><<a href="mailto:jack@rybn.org" target="_blank">jack@rybn.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Raphaël,<br>
<br>
For textfiles ?<br>
Maybe you should use [text] ?<br>
++<br>
<br>
Jack<br>
<span class=""><br>
<br>
<br>
Le 06/10/2016 à 18:00, Raphaël Ilias a écrit :<br>
> Hello list<br>
><br>
> For an array used as data storage (i.e. not audio), is there a way to<br>
> load data from a file AND have it resized according to file's length ?<br>
> ...like with soundfiler : [read -resize filename.wav tablename (<br>
><br>
> I want to load textfiles into arrays but their may vary and cannot be<br>
> predicted...<br>
><br>
> I feel my english isn't very clear today ! So I attached an example patch.<br>
><br>
> Any idea ?<br>
><br>
> have a good day !<br>
><br>
> --<br>
> Raphaël Ilias<br>
>   ______________________________<wbr>_____<br>
</span>> *     <a href="http://phae.fr" rel="noreferrer" target="_blank">phae.fr</a> <<a href="http://phae.fr" rel="noreferrer" target="_blank">http://phae.fr</a>>*<br>
<span class="">>      10 rue des Deux Haies - 49100 Angers / France<br>
</span>>      <a href="mailto:phae.ilias@gmail.com">phae.ilias@gmail.com</a> <mailto:<a href="mailto:phae.ilias@gmail.com">phae.ilias@gmail.com</a>> / <a href="tel:06%2004%2045%2079%2078" value="+33604457978">06 04 45 79 78</a><br>
>   ___________<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
><br>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</blockquote></div><br></div></div>