On Dec 14, 2007 10:54 AM, nirvana <[EMAIL PROTECTED]> wrote:
> I need to count the number of continous character occurances(more than
> 1) in a file, and replace it with a compressed version, like below
> XYZAAAAAAAADEFAAcdAA --> XYZ8ADEF2Acd2A
>


This sounds like homework. Google for run length encoding for
algorithms, or check your textbook.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to