Originally posted by M_Ghani

but can u tell me what does that do?
Code:
fin.clear();
fin.seekg(0);
Look 'em up here: http://www.cppreference.com/cppio.html