I'm trying to test some streaming file upload/download code that I've just written, but I need a huge (bigger than my memory, as in > 4GB) file to test on. What's a good way to quickly generate a file of a specific size (but no particular data inside)?
I know that I could just look around my hard drive for an appropriately-sized file, but I'm curious if there are any other good ways for generating test files, especially if I want a specific size. Downloading files is no good either, since my connection is slow.