You're trying to getting too far ahead of where you are and will just get lost with more info. Work and slowly build on what you know until you have a good understanding.Hmmmmm I thought that FAT is managing the Files so something like FILE isn't needed hmmmm.
...
Yes but I need a starting point or a source ;DYou're trying to getting too far ahead of where you are and will just get lost with more info. Work and slowly build on what you know until you have a good understanding.
So the handle is about which disk if there are multiple ?Okay. Lets open two files using an API that does not use a file handle.
f_open(“foo.txt”);
f_open(“bar.txt”);
f_read(buffer, 10);
What file did you just read from?
You are right, I just thought of if what I was answering to your questions fits this FAT system or the FAT12 system.You don't have to know how FAT works to create your own filing system. I have created embedded systems with 256GB microSD cards for mass data storage. I threat the microSD card as one huge memory and I use it any way I wish.
Cool stuff though.In my application, all the data files are of the sames size, for example, 16KB each. Hence each file occupies the same number of sectors. I don't have a FAT, map, linked list, or directory. When I need to read/write FILEn, I know exactly which sectors to access.