Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: phranque
joined:Aug 29, 2003
The max size is 60MB - that's set by someone else due to platform limitations... I'm just making the UI
anyhow, to test it I need some files that are exactly at, less than, and slightly greater than the max size.
Their definition of Megabyte is 1024^2 bytes
so the max is actually 60 * 1024 * 1024 = 62,914,560 bytes
So - I need at least three files, with exact sizes of
Is there a simple way to generate files like that? What software should I use?
head -c [i]desired-size-in-bytes[/i] /dev/random > [i]name-of-file[/i]
head -c [i]desired-size-in-bytes[/i] /dev/zero > [i]name-of-file[/i]
in your-favorite-language isn't too bad, either.
for (1..byte-size) print 'a';
Notepad, on the other hand, is just plain silly! :)