|
FAT creation
Does anyone have any tips of creating a FAT. Basically i'm trying to simulate a file system like in a USB stick or something and want to do this right.
The memory will be simulated by an array of 1024 blocks which can be either file data (bytes), directory data, or FAT data connecting the blocks of a file.
However some blocks are special:
Block 0 will be data about the whole file system
Blocks 1 and 2 will be the FAT
Block 3 will be the root directory.
The rest of the blocks will be either data or directory.
Any tips or pieces of code that'll help me out? Cheers.
|