In my program I need to read in a text file which is simply a single column of numbers separated simply by a carriage return. In the past I've simply used the FILE command, f_in, fscanf and fclose to do this and I've never had a problem. This was when I was codeing in Windows in Salford C. Now when I use xCode I get a "... has exited due to signal 10 (SIGBUS)" error code when the following code is added through my program: Code: /* Opening the input data file */ FILE *f_in; f_in = fopen("data.txt", "r"); /* Closing the input data file */ fclose(f_in); The error also occurs when using the fscanf function to read in the data. I've tried putting the data.txt file in multiple locations but to no avail. I must be missing something here, does Xcode/OS X/Unix use a different file input process than Windows when compiling a program in C? This is driving me nuts! Any help would be greatly appreciated!!