I could really do with some help on this one. For the project I'm working on I need to analyse some data using c. The analysing part seems to be coming on great. However, I can't get my program to read in the data from a file (for the time being I've resorted to typing in all of the data by hand which works fine for the smallish 32 entry data set I'm using for the moment). I tried using fin and fscanf etc as we were taught in our c module a year ago but this didn't seem to work when compiling programs with Xcode in OS X and I got somewhat rebuked on here for trying to use them. Could someone help me write a simple bit of code to read data in? My data is stored in a text file in the form of a list of two columns of numbers separated by one or more spaces. I can fiddle with the format of the data file in excel so I can give it commas to seperate variables or whatever. All I need is something to read data in. Later on I'll want something to write data out but for the moment that's not really a priority. It doesn't have to be anything fancy, nor does it have to be particularly efficient, just *something*! Sorry if I appear to be grovelling, I'm at a loss right now and could really do with some help!!