Originally Posted by
Codeplug
>> I also tried CreateFile, ReadFile, and WriteFile (Windows API functions), doesn't work for files larger than 4GB too.
They work for files of any size.
>> So, fopen64(), fread64() doesn't work?
Not part of the MS CRT. Those are in GNU libc.
gg
I tried createfile and readfile, it doesnt work for > 4gb files
Code:
Char c;
DWORD wmWritten;
HANDLE a =CreateFile(result_file.c_str(), GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
ReadFile(a, (char *)(&c), sizeof(int), &wmWritten, NULL);
CloseHandle(a);