<div dir="ltr"><div><br></div>How about sending #reset to set the stream back to the start ?<div><br><div>Read the paragraph above &quot;lseek&quot; here...<br><div><a href="http://falsinsoft.blogspot.com.au/2012/11/access-gpio-from-linux-user-space.html">http://falsinsoft.blogspot.com.au/2012/11/access-gpio-from-linux-user-space.html</a><br></div><div><br></div><div>cheers -ben</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 8:45 PM, 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>
Beginners@lists.<u></u><a href="http://squeakfoundation.org">squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation">http://lists.squeakfoundation</a>.<u></u>org/mailman/listinfo/beginners<br>
</blockquote></div><br></div>