How can read data from a USB mass storage device (which is detected by OS windows XP)with C or how can i find the address of the particular device.Is there any way to address individual memory locations of a hard drive.
. If USB is detected by WinXP, then it will be mapped to a drive (E:
or F: or whatever). Then you will be able to read the data from a
file (from USB) as if you are reading from Hard disk or Floppy drive.
2. If you think the above method will not work in all the PCs as the
USB drive letter will change depends on the num of drives present in
the PC, then format your USB as bootable disk. Boot the system using
USB, read the file using C prog and have fun :)
3. The following link shows how to read a particular sector in a
floppy drive using int86 interrupt function. This might or might not
applicable to USB, becaue the way in which the data stored USB is
different from floppy.
http://gd.tuwien.ac.at/languages/c/programming-
bbrown/advcw3.htm#dosint
Have a good day!