port-current-position

[procedure] port-current-position [port]

STklos: returns the current position (i.e. number of characters from the beginning of the port). See also port-current-line.

Some implementation provides port-tell, tell, ftell, file-position; though some of these only work on file-associated ports.