010 Editor contains a useful tool for setting the number of bytes in the current file. Note that the size of drives and processes is fixed and cannot be edited with this tool. Click the 'Edit > Set File Size...' menu option to display the Set File Size dialog. Enter the desired file size in the Size field. Note that either hex or decimal formats can be used, depending on the Hex and Decimal radio buttons. If the new file size is larger than the current file size, a number of bytes will be appended to the file. The value of the inserted bytes can be controlled using the Hex, Decimal, and Char fields in the Byte Value box. Note that when typing a value in one field, the other fields will automatically display the converted value (the Char field is empty in the above screenshot because the byte value 0 cannot be converted to a printable character). If the new file size is less than the current size, bytes will be deleted from the end of the file. Click OK to perform the operation or Cancel to close the dialog.
|