M
mahurshi
i am reading a file like this
ifstream infile(somefilenamestring.c_str())
while (infile >> myvariable)
{
/* do some interesting stuff */
}
now... if i want to get back to the first line of the file after i
executed this loop, what should i do ? is there a special thing that
needs to be done?
ifstream infile(somefilenamestring.c_str())
while (infile >> myvariable)
{
/* do some interesting stuff */
}
now... if i want to get back to the first line of the file after i
executed this loop, what should i do ? is there a special thing that
needs to be done?