MFC读文件的有关问题

MFC读文件的问题求助
是这样,现在有一个文件是不断往里面写数据的,现在我想每隔一定时间来读文件里面的数据,有没有办法从我第一次读文件开始,每次读到文件结尾就会记录下当前读取位置,这样下个时间段我再来读的时候就可以从这个位置开始读后面更新的数据,而不是又是从文件开头读起,当然每次从开头读起能解决我的问题也行,求详细解答,不胜感激呀
------解决方案--------------------
将时间数据添加到每次写入的数据前
------解决方案--------------------
你每次读了多少bytes 都记录一下 下次直接seek
看看CFile的类函数你就能有思路了
Repositions the pointer in a previously opened file.

 
virtual ULONGLONG Seek(
   LONGLONG lOff,
   UINT nFrom 
);
 

Parameters
lOff
Number of bytes to move the pointer.

nFrom
Pointer movement mode. Must be one of the following values:

CFile::begin   Move the file pointer lOff bytes forward from the beginning of the file.

CFile::current   Move the file pointer lOff bytes from the current position in the file.

CFile::end   Move the file pointer lOff bytes from the end of the file. Note that lOff must be negative to seek into the existing file; positive values will seek past the end of the file.

------解决方案--------------------
给你提供一个想法,每次读完之后,在文件后面加一个特有的标识,你下次读取之前,先找到这个特有标识的位置,那么这个位置后面的数据就是你所需要的;读完之后把之前的标识删了,并在文件的最后再加上特有的标识,就这样循环下去····
------解决方案--------------------
记录 这次读的 位置, 下次 seek