Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why fopen( ) can't open a big data file? (single file, as big as 29G)

2 views
Skip to first unread message

guru...@gmail.com

unread,
Jun 20, 2005, 2:56:34 PM6/20/05
to
I have a data file, the size is 29G (single file).

I use "fopen()" to open it, but it always fail, the returned file
pointer is NULL.

who knows why? thx!

Victor Bazarov

unread,
Jun 20, 2005, 3:05:46 PM6/20/05
to

It's possible that your standard C library implementation is not
capable of handling large files. Read the documentation. You could
be in a situation when you have to use OS-specific means for large
file access.

V

dominic...@gmail.com

unread,
Jun 21, 2005, 6:21:53 AM6/21/05
to
What operating system you using ?


DominiConnor
Quant Headhunter

guru...@gmail.com

unread,
Jun 21, 2005, 1:55:00 PM6/21/05
to
Linux, maybe the version is old.

Larry I Smith

unread,
Jun 21, 2005, 2:24:42 PM6/21/05
to
guru...@gmail.com wrote:
> Linux, maybe the version is old.
>

So you're using the GCC compiler (gcc/g++).
Read this:

http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#LARGEFILE

Regards,
Larry

0 new messages