Read the text. Use pack. Write the packed data.
In reply to Re: Converting Binary Numbers into Binary File by Fletch in thread Converting Binary Numbers into Binary File by echoangel911