Board index » delphi » Help on opening files and read 'em
Dan Bergman
![]() Delphi Developer |
Fri, 13 Nov 1998 03:00:00 GMT
Help on opening files and read 'emHmm What I want to do looks like this in Vis C++: HANDLE hReadFile; SECURITY_ATTRIBUTES sa; sa.lpSecurityDescriptor = NULL; hReadFile = CreateFile ( szFileName, GENERIC_READ | // this moves the file pointer 3750 bytes into the file from the DWORD dwPointer; dwPointer = SetFilePointer(hReadFile, 3750, NULL, FILE_BEGIN); // this 100 bytes from the file, BOOL bRet; char szBuff[???]; bRet = ReadFile (hReadFile, szBuff, 100, &dwBytesRead, FALSE); And I wonder how you do it in Delphi32.. |