Forum Moderators: phranque
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
62914559
62914560
62914561
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] for (1..byte-size) print 'a'; in your-favorite-language isn't too bad, either. Notepad, on the other hand, is just plain silly! :)