How to read an entire disc?

Miscellaneous Forums/General Discussion/How to read an entire disc?

Want to read the boot sector of a flash disk to make it appear as 'fixed' to the system. I think I can probably get hold of pre-made s/w to do this, and I've found hex editors that can open a disc (rather than individual files), but out of interest I would like to know how to write a program to do the same.