CodeBase - WRITE DIRBLOCK to READ FILEBLOCK
Category: File Control
Uploaded: 14th Nov 2011 23:26
Modified: 1st Jan 1970 01:00
This code illustrates how to extract a single file (FILEBLOCK) from a package created with WRITE DIRBLOCK. This can be modified so that you can extract a single file (essentially by deleting files that were extracted before it).
This allows us to see the structure of a DIRBLOCK package and allows a way to read filenames out of the package without actually knowing them before hand.<br /> <br /> The package created with WRITE DIRBLOCK has the following structure:<br /> - First byte = the number of files in the package (might actually be the first four bytes)<br /> - Byte 2 through 4 are empty.<br /> - Block containing characters for the first file's name<br /> - Block containing first file<br /> - Block continue to repeat for the total number of files.<br /> <br />
No comments yet.