Is there a size limit on a text file? [duplicate]

隐身守侯 提交于 2019-12-01 14:15:18

问题


Duplicate of: Is there an upper limit on .txt file size?


What is the limit to how much you can write to a text file? Any help would be appreciated.


回答1:


There is no limit, other than the size of your disk, and your file system limitations on a file.

For example, file size limits:

  • NTFS: 16 TiB - 64 KiB
  • Ext4: 16 TBs
  • FAT32: 4GB - 1

On disk, there is no difference between a text file and any other type of file. They all just store bytes of data.

The only conceptual difference when writing to a binary file and a text file is that when a write operation is performed on a text file, a \n character may be replaced with a \r\n character, or some other line ending character(s).



来源:https://stackoverflow.com/questions/393833/is-there-a-size-limit-on-a-text-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!