CodeBase - WRITE DIRBLOCK to READ FILEBLOCK

Return to the CodeBase listing

Category: File Control

Version: 1.0

1
0

Information

Uploaded: 14th Nov 2011 23:26

Modified: 1st Jan 1970 01:00

Author:  Naphier

Summary

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).

Full Description

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 />

Comments

No comments yet.