How to create large .txt file?

What do you want inside your file? The same line repeated over and over? The same letter? Random stuff? Does it need to be valid ASCII? Can it be binary nonsense? Can it be all zeros?

If you like the letter A, this is one solution:

</dev/zero tr \\0 \\101 | dd count=1000000 bs=1k of=big_file.txt