in reply to Converting Binary Numbers into Binary File
Read the text. Use pack. Write the packed data.