Its constantly saying that my code will not open will i have numbers in my file. I am used note pad and i saved my file as bacon.txt
Code:#include <stdio.h> #include <stdlib.h> int main (void) { float x1; float x2; float y1; float y2; FILE*Fp;// file pointer if((Fp=fopen("bacon.txt", "r"))==NULL) { puts("File would not open"); } else { printf("%f%f%f%f\n", "x1", "y1", "x2","y2"); fscanf(Fp,"%f%f%f%f", &x1,&y1,&x2,&y2); } }