how I could I know the end of the current root directory entries?
I mean when - for examble - the root directory has 10 entries. how could I know that after reading the 10th entry that is the end of the ROOTDIR?
I ask, because when I try to read ROOTDIR, I received the attribute 0x0F for nun existens DIR.
in my rootdir I have :
text.txt
image.x
krnl.x
--
after krnl.x I should know that is the enc of entries, but how?
FAT Question?
Re:FAT Question?
IIRC the boot sector tells you how many entries there are in the root directory.
Re:FAT Question?
the count of root dir entries in the boosect is the maximum number of entries that rootdir can have, not what we has already fill.
in floppy disk 1.44MB the rootdir can save 224 entries and that number what the bootsect tell us! but not all 224 entries are used.
in floppy disk 1.44MB the rootdir can save 224 entries and that number what the bootsect tell us! but not all 224 entries are used.
Re:FAT Question?
Look for an entry with a name full of zeroes as a terminator, or for the last sector of the root directory being full (which wouldn't have a zero entry at the end).
Re:FAT Question?
Actually, in ordinary FAT you only need to look on the first character in the file name. If it is zero, the search should stop since there are no more entries in the directory. For VFAT, I take it, it must be the two first characters to be zero...