Difference between revisions of "Genfile"
From DIDEAS Wiki
m |
m |
||
Line 8: | Line 8: | ||
examples: | examples: | ||
+ | |||
genfile outfile.txt 10 0x41 - create a 10 byte file with the the letter 'A' (65) | genfile outfile.txt 10 0x41 - create a 10 byte file with the the letter 'A' (65) | ||
Revision as of 11:39, 22 August 2005
genfile : create a file with single value
- Usage : genfile [output file name] [size bytes in hex] [value in hex] <cluster size>
- All numbers may be expressed in decimal or hex. Hex is preceded with $ or 0x
- bytes may be followed by the power of 2 modifiers (K, M, G), or C to multiply by the cluster size (default = 512)
examples:
genfile outfile.txt 10 0x41 - create a 10 byte file with the the letter 'A' (65)
genfile outfile.bin 10k 255 - create a 10k file with the value 255
genfile outfile.bin 4C 255 2k - create a file 8k in size(4 clusters each which are 2k) with the value 255