Re: Compressing a text file using count of continous characters

2007-12-15 Thread makkalot
> > > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A > (RLE), that saved a lot of googles I have written a rle in my first years in school. It compresses a bitmap image %50 compression is achivied :) The link : http://arilaripi.org/index.php?option=com_remository&Itemid=26&func=fileinfo&id=273 And i

Re: Compressing a text file using count of continous characters

2007-12-14 Thread nirvana
On Dec 14, 12:07 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > 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 > > XYZDEFAAcdAA

Re: Compressing a text file using count of continous characters

2007-12-14 Thread Chris Mellon
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 > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A > This sounds like homework. Google for run length e

Re: Compressing a text file using count of continous characters

2007-12-14 Thread Marc 'BlackJack' Rintsch
On Fri, 14 Dec 2007 08:54:58 -0800, nirvana 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 > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A Great. Then go ahead an implement it. :-) `itertools.groupb

Compressing a text file using count of continous characters

2007-12-14 Thread nirvana
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 XYZDEFAAcdAA --> XYZ8ADEF2Acd2A Thanks Sumod -- http://mail.python.org/mailman/listinfo/python-list