QUOTE(IainMackay85 @ 24 Feb, 2007 - 03:11 PM)

you need to put quote marks round your file name or the compiler won't treat it as a string.
CODE
fopen("c:\numberarray.txt",r);
also you haven't declared r
CODE
FILE *r
is this the first c program you have done?
Not sure of the reason for that question, especially given your answer.
One does not need to declare r - it needs to be enclosed in quotes. It is not a pointer to a file, it is a mode that indicates the file is to be read. You are likely thinking of a file pointer that is declared to allow the program to keep rack of the file being accessed, such as
CODE
FILE *r;
r = fopen("c:\numberarray.txt","r");
bestbat, you were correct in your assumptions about the mode identifier, it does not need to be declared. It does need to be in quotes, however.