Convert to binary and convert back to strings
Grant Edwards
grante at visi.com
Wed Feb 21 19:12:21 EST 2007
On 2007-02-21, Harlin Seritt <harlinseritt at yahoo.com> wrote:
> I would like to take a string like
> 'supercalifragilisticexpialidocius' and write it to a file in
> binary forms -- this way a user cannot read the string in case
> they were try to open in something like ascii text editor.
Why wouldn't they be able to read it? ASCII _is_ binary.
> I'd also like to be able to read the binary formed data back
> into string format so that it shows the original value. Is
> there any way to do this in Python?
What you're describing as "this" doesn't seem to make any
sense.
--
Grant Edwards grante Yow! Kids, don't gross me
at off... "Adventures with
visi.com MENTAL HYGIENE" can be
carried too FAR!
More information about the Python-list
mailing list