read text file byte by byte

daved170 daved170 at gmail.com
Sat Dec 12 02:16:42 EST 2009


Hello everybody,
I need to read a text file byte after byte.
Eache byte is sent to a function that scramble it
and I need to write the result to binary file.

I've got some questions -
1) How do I read the file byte by byte
2) Should I use streams? If so and I get my entire scrambled text in
stream can I just write it to the binary file?

Thanks
Dave



More information about the Python-list mailing list