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
There's plenty of limits, though none of them are intrinsic to .txt files:
I would recommend sending an SMS message for each prime you calculate. Your friend would like that much better than a bunch of paper. Plus he can be updated much more often.
If memory serves, FAT32 has a 4gig file limit size.
Ziggy--
I love this: "not some smart error checking ASM guy." You are describing all of us!
Have plenty of disk space and write away! As previously mentioned, be sure the editor used to open your file can open very large files.
Happy holidays, true beginner Ziggy.
More than likely you are using an algorithm that is slow. As the primes get larger your program will be taking longer and longer to calculate a single prime. If you let it run over night the text file is not going to be very large in the morning. I'd be impressed if it's over a couple of megs.
Technically, there is no limit except that which the file system places on you. However, Notepad is really cranky about opening obscenely large files.