Reading of hard disk on mac os

hi all
I have tried to read the hard disk using c/c++ fuuction fopen(),fread(),fwrite() but i failed to read.
device permissions entry is
crw-r----- 1 root operator 14, 0 27 Oct 09:36 /dev/rdisk0
What i have to do now plz help me
With best regards
darpan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Run as root

In order to open that, you'd need to be running as root.