Just set your favourite text editor to overwrite mode, start with an array of zeroes and change the appropriate characters to 1.