How to read 4GB file on 32bit system

前端 未结 4 1792
予麋鹿
予麋鹿 2020-12-19 14:53

In my case I have different files lets assume that I have >4GB file with data. I want to read that file line by line and process each line. One of my restrictions is that so

4条回答
  •  一整个雨季
    2020-12-19 15:35

    Since this is windows, you can use the native windows file functions with the "ex" suffix:

    windows file management functions

    specifically the functions like GetFileSizeEx(), SetFilePointerEx(), ... . Read and write functions are limited to 32 bit byte counts, and the read and write "ex" functions are for asynchronous I/O as opposed to handling large files.

提交回复
热议问题