i am trying to use the seekg(offset, base) function to move the read position but cant seem to do it correctly. When i use tellg() to know if the seekg operation is
successful or not , the tellg() will always return -1. Heres the code.

#include <iostream>

using namespace std;



int main()
{

char ch;

cin.get();

cin.seekg(0,...