[futurebasic] re: [FB] storing text

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Thu, 19 Aug 1999 22:36:50 -0400
>tedd said:
>>   Been there, done that.
>great.  got the code?         ;+)

I've got the code somewhere, but it's in C.

>p.s.  thanks for the reference.  i just had in mind
>a simple munger find-and-replace; would that work?

That could work, but what I'm thinking about is a bit more complicated than
that. First your program looks at all the data you want to store. Then
figures out what characters appear most and orders them. It then assigns
001 to the most frequent; 010 to the next; 011 to the next; 100 to the next
and so on. Once the program knows what the translation is, then it
incorporates that into the file header and attaches it to the file. When
one does the reverse, the program looks at the translation and rebuilds the
file. It's the same type of data compression that unstuff-it uses. Might as
well use a compression program.


<mailto:tedd@...>	               http://sperling.com/