How to read an entire disc?

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

How can I read all the bytes off a disc including boot sectors etc, rather than opening individual files?

I know some hex editors can do it, but how would you write something like this in BlitzMax (or C)?