Hello, I used below MFC code to read a file, but I need do that several times, how can I move the pointer to the beginning of file once again. Thank you!
CFile f;
CArchive ar(&f, CArchive::load) ;
...
while(ar.ReadSt ring(ptr))
{
...
}
//here should reset to the beginning of file
//re-read the file again
while(ar.ReadSt ring(ptr))
{
...
}
CFile f;
CArchive ar(&f, CArchive::load) ;
...
while(ar.ReadSt ring(ptr))
{
...
}
//here should reset to the beginning of file
//re-read the file again
while(ar.ReadSt ring(ptr))
{
...
}
Comment