FAT FS access from C++?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
mmiikkee12

FAT FS access from C++?

Post by mmiikkee12 »

I'm writing a kernel in C++. Can anyone please tell me how to access a FAT drive using C++ code? i.e. get the contents of files and directories? Yes, I have already searched Google, I just need something basic to go from. No, I am not writing this for school-it's my latest hobby. 8)
srg_13

Re:FAT FS access from C++?

Post by srg_13 »

What do you mean by a FAT drive? like a floppy or hard drive formatted with the FAT12/16/32 Filesystem?? In that case you will have to write a floppy drive or ATA driver, then read the File Allocation table, which points to all the files on the disk. check out the FAT section in the FAQ

-Stephen
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:FAT FS access from C++?

Post by Pype.Clicker »

There are also hints about writing a floppy driver in the same FAQ ;)
Post Reply