Subj : Re: CreateFile () To : borland.public.cpp.borlandcpp From : Jogy Date : Wed Jul 14 2004 01:54 pm mike wrote: > Hi, > > i'm using the win32 api CreateFile () and i wanted to know how to put the > "cursor" at a certain position. if i used c's FILE pointer i can use fseek > () to go to a specific place in the file. > > what i'm trying to accomplish is this. i have an xml file and i want to > calculate a crc of the file, but i don't want to include the first line of > the file in the CRC calculation. > > line 1: > line 2: line 3 ... > line n > > i want the "cursor" to be pointed at line 2 when i begin my crc calculation. > > aloha, > mike > > Use the SetFilePointer() or SetFilePointerEx() functions: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfilepointer.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfilepointerex.asp -- Jogy http://www.jogy.net/ jogy@sirma.bg .