F. Bluemers
Joined: 09 Mar 2006 Posts: 733 Location: Nederland
|
Post subject: Re: File size for files > 4Gb Posted: Fri May 11, 2012 5:08 pm |
|
|
| Cardoso wrote: |
Hi,
I'm generating the 8man checkers EGTB and for the first time one slice is greater than 4GB.
I'm using MSVS 2010, and c++, a x64 project and windows 7 x64, fwrite and fread don't work so I made my own versions of these functions to write and read files by chunks.
But another problem occured, I can't determine the file size of files bigger than 4gb.
I use _fseeki64 and _ftelli64, but these don't work.
The size is allways zero. I open files with _fsopen().
I came across the _filelength64() function but this func don't work with (FILE *) structure.
Can some please help me getting the file size of files bigger than 4GB?
best regards,
Alvaro |
What about the underlying I/O functions?
_open() and _tell(),they might work. |
|