I was doing a projecteuler problem.
I made a program that would find all the prime numbers under 1000000 and write them all in a file.
Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", the result is what I want.
Please explain. Thanks :D