OPENING A HARD DISK FILE ON MAC OS X USING C/C++
Posted on 2004-10-27
I have tried to read the hard disk on mac os x But failed. I have use the fopen(), fread(),fwrite() to read the hard disk. I m able to read any .txt and .doc file on mac using these functions. Becasue hard disk is also represented as file /dev/rdisk0 but i unable to even open this file using fopen().
device permissions on this file are
crw-r----- root operator /dev/rdisk0
plz help me why this file is not opened.