Reading the State of Opened Streams

Character count, line count and line position for a specified stream are obtained as follows: