Is there an upper limit on .txt file size?

前端 未结 11 2300
礼貌的吻别
礼貌的吻别 2021-02-18 14:03

As a Christmas gift I have written a small program in Java to calculate primes. My intention was to leave it on all night, calculating the next prime and writing it to a .txt fi

11条回答
  •  梦毁少年i
    2021-02-18 14:04

    There's plenty of limits, though none of them are intrinsic to .txt files:

    • Windows 9x Notepad won't open a file > 64KB.
    • Windows NT/2k/etc's Notepad has no limit, but tends to choke and lock up on multi-megabyte files. You also need to remember most text editors are dumb and try to read the entire file into RAM.
    • Lots of software is limited to 2GB or 4GB files depending on whether they use signed or unsigned ints - as someone already mentioned FAT32 is guilty of this.

提交回复
热议问题