Thread: FAT creation
View Single Post
Old Dec 5th, 2005, 8:05 AM   #1
BungalowBill
Programmer
 
Join Date: Dec 2005
Posts: 40
Rep Power: 0 BungalowBill is on a distinguished road
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.
BungalowBill is offline   Reply With Quote