我用open语句打开一个文本文件,在到达文件尾时如何将指针移到开头
解决方案 »
- 关于多线程的问题
- 请用过NI控件(measurement studio)的同学进
- 请问各位大虾,通常用哪些调试工具?!用过DevPartner吗?!
- unicode little 或者unicode big的编码内容用哪些函数可以转成byte类型
- 去看看吧。
- LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)没有分了阿,我借贴都是很好的阿
- ADO中Connection对象和Recordset对象之间是什么关系
- 为什么我的串口程序必须Sleep一会儿后才能读出正确数据???
- 请教一个 简单问题 ,谢谢
- ADO 数据库这样获得记录总数?
- 急!!有关在堆区申请空间的问题!急!!
- 基于对话框的程序insert 2 个form,form1如何访问form2中的控件?
aaa.SeekToBegin();
LONG lOffset = 1000, lActual;
lActual = cfile.Seek( lOffset, CFile::begin );
MyFile.Seek( long loff,CFile::begin )from msdn:
ParameterslOffNumber of bytes to move the pointer.nFromPointer 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.
你可以把第一个参数设置为0或1,随便你怎么都可以,看参数设置吧