I'm not following the "concept" behind your code.<br><br>Notice that you can connect a message box "print" and send that command to textfile. And it reads your file to the pd shell correctly.<br><br>
[read your-file.txt]<br>| [print( <-- this is a message<br>| /<br>|/<br>| [bang] <-- hit this to read,.<br>| /<br>|/<br>[textfile]<br>|<br>|<br>[print list]<br><br>And it works. Take a look at the help file, it shows hot to use it. I hope I'm understanding your issue, if not, hopefully someone does :)<br>
<br>Best of luck,<br>Pedro<br>p.s: remember to use the "rewind" message to textfile, because otherwise it doesn't read the line again! Because it moves forward with the seek file pointer.<br><br><div class="gmail_quote">
On Tue, Jun 29, 2010 at 10:37 PM, thomas thiery <span dir="ltr"><<a href="mailto:matohawk@gmail.com">matohawk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi pd-list,<br><br>test this patch, I saw a curious problem. I need to read line with "float" at the begining of a line and textfile can't do this.<br>It's a pity<br clear="all"><font color="#888888"><br>
-- <br>Matohawk alias Th-Th<br>
<a href="http://www.th-th.fr" target="_blank">www.th-th.fr</a><br>
</font><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes<br>contacto: <a href="mailto:jazz@radiozero.pt">jazz@radiozero.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes">http://web.ist.utl.pt/Pedro.Lopes</a> <br>