I am trying to write an application for Mac OS X that will modify the /etc/hosts file. It is responsible for mapping IP addresses to domain names. When I use the fopen command with the directory as /etc/hosts, nothing happens. Yet when I made this application for windows, I could point directly to the file, c:/WINDOWS/system32/drivers/etc/hosts, it works fine. Do I need to use a different command, other than fopen, or do I need to be more specific in directing the application to the file. Do hard drives have letter names in OS X like they do in windows?
2006-07-26
15:03:32
·
2 answers
·
asked by
powwow366
2