<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Wonderful, <br>
dataFile reset.<br>
^dataFile upToEnd<br>
<br>
I thought every read request would just produce a new value. <br>
<br>
Thanks,<br>
<br>
Herbert<br>
<br>
does the trick<br>
<div class="moz-cite-prefix">Am 28.01.2015 um 14:13 schrieb Michael
Rice:<br>
</div>
<blockquote
cite="mid:CAGw08vMAgd8Buf_4pRxPTZF583Vz3J2GzWxS59pQfLWyX8eWeA@mail.gmail.com"
type="cite">
<div dir="ltr">Is there a StandardFileStream>>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"><<a moz-do-not-send="true"
href="mailto:herbertkoenig@gmx.net" target="_blank">herbertkoenig@gmx.net</a>></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 '' on
subsequent reads which means that<br>
StandartFileStream>>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>
_______________________________________________<br>
Beginners mailing list<br>
<a moz-do-not-send="true"
href="mailto:Beginners@lists.squeakfoundation.org"
target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/mailman/listinfo/beginners"
target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>