I want to know how is data I/O takes place on flash drives which are typically EEPROM's . I thought so as I was writing a C Program that involves file handling . For a normal HDD , that would involve returning the file pointer and reading or writing data to the disk which would be done by read/write HEAD . While in EEPROM's there is no read/write head , as it's works on mnemonic commands , So how come does the C file handling program works when I apply it to a file on flash drive ?
|
feedback
|
|
Unless you're talking about writing a device driver, file handling is the same for a flash drive as a hard drive because the operating system and file system have abstracted away all the low-level details. All you have to worry about is opening a file and reading to or writing from it. Even at a low level, either device would generally take an address and some bytes to write (or an address to read). Hard drives internally handle the conversion from address to cylinder, track, sector, etc. | |||
feedback
|