<div dir="ltr">Is there a StandardFileStream&gt;&gt;reset?<div><br></div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 7:45 AM, Herbert König <span dir="ltr">&lt;<a href="mailto:herbertkoenig@gmx.net" target="_blank">herbertkoenig@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I can successfully read a GPIO Pin on the RasPi if I do it like:<br>
|value|<br>
dataFile ensureOpen.<br>
value := dataFile upToEnd.<br>
dataFile close.<br>
^value<br>
<br>
dataFile is the /sys/class/gpio/gpioxx/value file that exists after exporting gpioxx.<br>
<br>
Without the reopening and closing of the file I get &#39;&#39; on subsequent reads which means that<br>
StandartFileStream&gt;&gt;basicNext answers nil.<br>
<br>
Is there a way to get the values without having to close and reopen the file each time?<br>
<br>
Thanks<br>
<br>
Herbert<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.<u></u>org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>