Code Comments
Programming Forum and web based access to our favorite programming groups.Creation of the "Down Pillow" Compression Algorithm Control Codes: Step 4 of 88 I am posting a series of steps to comp.compression so that there can be an external record of my efforts to create a sucessful copy of control codes to use in the "Down Pillow" compression algorithm as discussed earlier this year. Please disregard these posts if you value your time; time is money of course. You are warned up front, so don't accuse me of wasting your time. Concern yourself only if I am sucessful. If that time comes you will have access to everything you need to know in the archive. But, if you are like me and love wasting your time on frivolous pursuits play along with me if you dare. Erik T. Evenson Step 4 of 88 Convert each file created in Step three into a 10-character column ascii file. Convert DPC03_01.DAT into DPC04_01.DAT Convert DPC03_02.DAT into DPC04_02.DAT Convert DPC03_03.DAT into DPC04_03.DAT Convert DPC03_04.DAT into DPC04_04.DAT Convert DPC03_05.DAT into DPC04_05.DAT Convert DPC03_06.DAT into DPC04_06.DAT Convert DPC03_07.DAT into DPC04_07.DAT Convert DPC03_08.DAT into DPC04_08.DAT Convert DPC03_09.DAT into DPC04_09.DAT The following Qbasic Program is what I use to perform the file modification. ----------------------------- REM Program: RND16FMT.BAS REM This program formats a pseudo-randomized ' hexadecimal (16-base) ascii file into ' 10 character column and then prints to ' an ascii file. INPUT "input file ", q$ INPUT "output file ", q1$ OPEN "R", #1, q$, 10 FIELD #1, 10 AS a$ OPEN "O", #2, q1$ LET c# = LOF(1) / 10 FOR b# = 1 TO c# GET #1, b# PRINT #2, a$ NEXT b# CLOSE END -------------------------------- More to follow.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.