TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: WHOEVER CARES
from: FRANK COX
date: 1995-08-05 10:16:00
subject: Data file `compression`

Here's a nifty little problem that I just can't seem to get my mind around.
Hypothetical situation:  We have a database containing names and yes/no 
answers, like this:
Joe Blow   Yes
Jane Doe   No
Fred Jones Yes
I see two characteristics of this database that "waste space".  First, all of 
the ASCII characters in the names are CHR$(127) or less.  Second, a yes/no 
answer only requires one bit to be on or off.
Question:  Has anyone written a routine or does anyone know how to build and 
maintain a datafile in PowerBASIC where a field can be defined using 7-bit 
ASCII and a field can be only one bit long if required?
--- Msgedsq 2.2e
---------------
* Origin: THE BIG ELECTRIC CAT Melville Sask *SDS* *PDN* (1:140/53)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.