2010年8月25日 星期三

Read and Write large file(over 2G) in C

If you want to open a large file in Linux


You can try it

Add those flag into your Makefile

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

Modify you fseek and ftell to fseeko and ftello

Finish

沒有留言:

張貼留言