#include <stdio.h>
main()
{
FILE*fp ;
if ((fp = fopen("new.txt","r")) == NULL);
{
printf("file could not be opened\n");
return 0;
}
}
this is what ive written and it always comes back with file could not be opened. I need to read the text file new, which has 10 variables separated by spaces in it.