How to create large .txt file?

Powershell, regular batch file.

Remember too, that since you presumably have the Arduino IDE installed, you have gcc and again, I assume that you know how to program in C++, so you can write a ~fifteen line program to generate a suitable file.