>On 8/29/09, Geneviève DIAGORN <g...@teamlog.com> wrote:
>
> >Bonjour,
> >Je suis absente jusqu'au 02/09 inclus.
> >En cas d'urgence Soprane, contacter notre adresse générique
> >projet.sopr...@teamlog.com.
> >Cordialement.
>
> >Geneviève


I dont know your language.Please communicate in English.

I am using the code below to conver string to bin and back.


def tobin(astr):
   z=map(lambda x: bin(ord(x)),astr)
   return z

def tostring(blist):
   z=map(lambda x: chr(int(x,2)),l)
   return ''.join(z)

I dont believe it is impossible on files.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to