Page 1 of 1
DELETED
Posted: Sun Jan 23, 2011 12:37 pm
by NecessAndAry
DELETED
Re: C(++) file reading/writing
Posted: Mon Jan 24, 2011 10:17 pm
by Rheini
Re: C(++) file reading/writing
Posted: Wed Jan 26, 2011 8:31 pm
by invisghost
Failing to read at 1gb is an odd size to fail at. The 32bit limit is 4gb and it might also fail at 2gb for a few reasons. Have you checked if you're running out of memory? You can read bigger files if needed but you have to read them in chunks. You cant just do a single fread() call because you aren't able to hold the entire file in memory (32bit limitation).

Re: C(++) file reading/writing
Posted: Sun Jan 30, 2011 2:49 am
by VoLT
not sure ... maybe so
Code: Select all
int m_fh;
__int64 pos;
int sz;
BYTE bIGbuff[BUFFER_SIZE]={0};
_lseeki64(m_fh, pos, SEEK_SET);
_read( m_fh, bIGbuff, sz )
more examples
http://msdn.microsoft.com/en-us/library ... s.80).aspx
PS Work in 32 and 64 bit
PPS Support large 4Gb files