If I create a stream,
str = StringToStream["how can I dynamically display the stream position"];
Read[str, Word]
"how"
then, when I use,
Dynamic[StreamPosition[str]]
The output will not dynamically update the current state of the stream position.
Any ideas?
Dynamic[Streams[ ]]
$\endgroup$Dynamic[Refresh[Streams[], UpdateInterval -> 1]]
$\endgroup$str
contains only stream ID and it never changes. You can obtain full stream information withInternal`StreamInformation[str]
. Unfortunately, It doesn't solve the problem. $\endgroup$