I am working on an adaptation of the Huffman routines provided in the
download sections here to archive multiple files.
Once the file is compressed with the Huffman routines, I try to
store them all into a single file.
Originally, I used a loop that simply wrote a header, and appended
each file into the "archive" file. That is pretty much the format
I want to use, since it is simple, and easy to work with.
At first, I tried appending the files with Line input, and
print #, the problem is, some of the binary files contain
characters (the one I noticed immediately was CHR(26)) that cause
the function to abort and the rest of the file is not added.
I tried to solve this problem by using Get and Put in binary mode,
but this creates a different problem: dificulty in determining
the header from the data...meaning the whole file is extracted
to the first filename.
I have tried numerous ideas, but none seem to work.
Does anyone have any idea how to do this with a function that can
handle a variety of file types?
Perhaps I should get the UUEncode source, do a save (LOW ASCII)
Encoding, add the files, then compress with the Huffman routine?
Unless someone has a better idea....
------------------
Amos
mailto:[email protected][email protected]</A>
download sections here to archive multiple files.
Once the file is compressed with the Huffman routines, I try to
store them all into a single file.
Originally, I used a loop that simply wrote a header, and appended
each file into the "archive" file. That is pretty much the format
I want to use, since it is simple, and easy to work with.
At first, I tried appending the files with Line input, and
print #, the problem is, some of the binary files contain
characters (the one I noticed immediately was CHR(26)) that cause
the function to abort and the rest of the file is not added.
I tried to solve this problem by using Get and Put in binary mode,
but this creates a different problem: dificulty in determining
the header from the data...meaning the whole file is extracted
to the first filename.
I have tried numerous ideas, but none seem to work.
Does anyone have any idea how to do this with a function that can
handle a variety of file types?
Perhaps I should get the UUEncode source, do a save (LOW ASCII)
Encoding, add the files, then compress with the Huffman routine?
Unless someone has a better idea....
------------------
Amos
mailto:[email protected][email protected]</A>
Comment