文本文件有大小限制吗? [英] Is there a size limit on a text file?
问题描述
可以写入文本文件的限制是多少?任何帮助将不胜感激.
What is the limit to how much you can write to a text file? Any help would be appreciated.
推荐答案
除了磁盘大小和文件的文件系统限制外,没有其他限制.
There is no limit, other than the size of your disk, and your file system limitations on a file.
例如,文件大小限制:
- NTFS:16 TiB-64 KiB
- Ext4:16 TB
- 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.
在写入二进制文件和文本文件时,唯一的概念区别是,当对文本文件执行写操作时,\ n字符可能会替换为\ r \ n字符或其他行尾人物).
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).
这篇关于文本文件有大小限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!