Opening a file in Mac OS X
Posted
by Pooya
on Stack Overflow
See other posts from Stack Overflow
or by Pooya
Published on 2010-04-10T23:52:37Z
Indexed on
2010/04/11
0:03 UTC
Read the original article
Hit count: 259
I am trying to open a text file with C++ in Mac OS X but I always get a Bus error.
I do not care where to put the file. I just need to read it. Am I writing its address wrong? or that Bus Error has another reason?
FILE *dic;
dic = fopen("DICT","rb");
dic = fopen("./DICT","rb");
dic = fopen("~/DICT","rb");
dic = fopen("~//DICT","rb");
© Stack Overflow or respective owner