StreamPosition
StreamPosition[stream] returns an integer that specifies the position of the current point in an open stream.
Examples
str = OpenRead["ExampleFile.txt"];
StreamPosition[str]Please visit the official Wolfram Language Reference for more details.