Important information: this site is currently scheduled to go offline indefinitely by end of the year.
DELETED
-
- n00b
- Posts: 10
- Joined: Tue Dec 28, 2010 2:51 am
- Been thanked: 1 time
-
- advanced
- Posts: 55
- Joined: Tue Jul 13, 2010 7:16 pm
- Has thanked: 1 time
- Been thanked: 11 times
Re: C(++) file reading/writing
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
not sure ... maybe so
more examples http://msdn.microsoft.com/en-us/library ... s.80).aspx
PS Work in 32 and 64 bit
PPS Support large 4Gb files
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 )
PS Work in 32 and 64 bit
PPS Support large 4Gb files