How to create large .txt file?

Are you looking for a solution to run on the PC or the Arduino ?