#includeIn this example, the tellg() function is called on the input file stream object infile. The result of the function is stored in a variable named pos of type std::streampos. The current position of the get pointer is then printed to the console. This function is part of the C++ Standard Library, which is included in the standard namespace std.#include int main() { std::ifstream infile("example.txt"); if (infile.is_open()) { std::streampos pos = infile.tellg(); std::cout << "Current position of get pointer is " << pos << std::endl; infile.close(); } return 0; }