parameters: (inp, out)
docstring: (infilename, outfilename) - Create binhex-encoded copy of a file
docstring_summary: (infilename, outfilename) - Create binhex-encoded copy of a file
docstring_tokens: ( infilename outfilename ) - Create binhex - encoded copy of a file
function: def binhex(inp, out):
      """(infilename, outfilename) - Create binhex-encoded copy of a file"""
      finfo = getfileinfo(inp)
      ofp = BinHex(finfo, out)
  
      ifp = open(inp, 'rb')
      # XXXX Do textfile translation on non-mac systems
      while 1:
          d = ifp.read(128000)
          if not d: break
          ofp.write(d)
      ofp.close_data()
      ifp.close()
  
      ifp = openrsrc(inp, 'rb')
      while 1:
          d = ifp.read(128000)
          if not d: break
          ofp.write_rsrc(d)
      ofp.close()
      ifp.close()
function_tokens: def binhex ( inp , out ) : finfo = getfileinfo ( inp ) ofp = BinHex ( finfo , out ) ifp = open ( inp , 'rb' ) # XXXX Do textfile translation on non-mac systems while 1 : d = ifp . read ( 128000 ) if not d : break ofp . write ( d ) ofp . close_data ( ) ifp . close ( ) ifp = openrsrc ( inp , 'rb' ) while 1 : d = ifp . read ( 128000 ) if not d : break ofp . write_rsrc ( d ) ofp . close ( ) ifp . close ( )