ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File size for files > 4Gb
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
F. Bluemers



Joined: 09 Mar 2006
Posts: 733
Location: Nederland

PostPost subject: Re: File size for files > 4Gb    Posted: Fri May 11, 2012 5:08 pm Reply to topic Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Subject Author Date/Time
File size for files > 4Gb Alvaro Cardoso Fri May 11, 2012 2:45 pm
      Re: File size for files > 4Gb F. Bluemers Fri May 11, 2012 5:08 pm
            Re: File size for files > 4Gb Vincent Diepeveen Tue May 15, 2012 7:40 pm
      Re: File size for files > 4Gb F. Bluemers Fri May 11, 2012 5:54 pm
      Re: File size for files > 4Gb Vincent Diepeveen Tue May 15, 2012 7:36 pm
      Re: File size for files > 4Gb Vincent Diepeveen Tue May 15, 2012 7:47 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads