Possible Duplicate:
2GB limit on file size when using fwrite in C?
I realized that for my C compiler, the fread function can only correctly read a file smaller than 2GB (2147483648). I am wondering whether we could read >2GB file at all. Thanks
Possible Duplicate:
2GB limit on file size when using fwrite in C?
I realized that for my C compiler, the fread function can only correctly read a file smaller than 2GB (2147483648). I am wondering whether we could read >2GB file at all. Thanks
You need to compile with large file support. Alternatively, on some platforms you can use fopen64
.