Write large file

前端 未结 3 2462
青春惊慌失措
青春惊慌失措 2021-02-20 08:39

I try to write to a large file, but it seems like it does not work for files larger than 2GB. I have tried with boost::iostreams::file_sink. Is this just a limit with the boost

3条回答
  •  礼貌的吻别
    2021-02-20 09:14

    In NTFS the only real limit is the size of the volume. If you want to test this out you can create a dummy file using the command-line:
    fsutil file createnew [filename] [validdatalength]
    Ex:
    fsutil file createnew TestFile.bin 65536000000
    That should create a 64GB file assuming you have an NTFS volume.

提交回复
热议问题