-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 11/07/2015 23:35, Billy Stiltner a écrit :
> 
> 
> 
> 
> I guess, your textfile seems to contain only one (or several) line 
> with floats. A better way could be :
> 
> yes , the textfiles were saved through array the data was
> originally a space delimited list of floats sent from 
> javascript->JAVA->TCP->FUDI->[array set] then saved by the [write
> filename( message to [define array arrayname]

OK.

> 
> 
> 
> 
> [read filename, rewind, bang( | [textfile] | [t l l] |     | |
> [list length] |     | |     [array size arrayname] | [array set
> arrayname]
> 
> Dont forget [array define arrayname] somewhere in your patch.
> 
> 
> That is simpler.
> 
> 
> a note : if you use [array], you could use [text] instead
> [textfile]. ++
> 
> Jack
> 
> 
> 
> 
> 
> Thanks I could use [text] instead I guess. Does it auto resize?

Yes and no, it just keeps the content of your textfile, no more, no
less (it is not a pd array).

> 
> It seems I haven't had any trouble with textfile or text resizing
> when reading from file.

Yes, there is no trouble to use [textfile], it was just to tell you
that there is also [text] in Pd vanilla with more options than
[textfile]. And with [text], you can save your textfile with your
patch (you can do it also with [array]), depending of what you want to
achieve.
++

Jack


> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVoZ3LAAoJEOuluecjw8GU/MAIAKXi/M90mqoCAhBX1vnCI8O2
CGSJUC4NlJExYGGnq4VU3mYpCDJrY/LLMIoDVu3efyFdb4VRGLyah4HgKfAgAQNS
1y67zHpYU2rVrfdg6V96BZuBI/rKe45/G20KY+QeQmbxeptZrJoXeYTM5Jzqxei7
NqgBTCL35sxEc7mX+Y2l3XvWvjP1OJEc2P864DSynrmXD7byYuCJBdVJYc336F0K
5dCT1xW2UF5UEdBmdHoXJ3/5tS0ygYnETKtaqL5CjKL5FRAdCDUFSc4K/DNp8yjZ
uwuToQapljcP8e030KbcaC70e/LkT4ZuqG1IuvoCZXNuzO7RFBlbSDxI697xUFo=
=o4/3
-----END PGP SIGNATURE-----

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to