cppreference.com > C++ I/O > tellg
tellg
Syntax:
  #include <fstream>
  pos_type tellg();

The tellg() function is used with input streams, and returns the current "get" position of the pointer in the stream.