I am puzzled by the failure that I keep getting due to an error in this section of code:
FILE *fid200; fid200 = fopen ( "Length200Vector.txt" , "w" ); if (fid200 == NULL) perror("Error opening Length200Vector.txt"); for (int n = 0; n<200; n++) { if (n == 0) { fprintf (fid200, "%f", self.avgFeatureVect[0][n]); } else { fprintf (fid200, ", %f", self.avgFeatureVect[0][n]); } } fprintf (fid200, "\n"); fclose(fid200);
Error: Error opening Length200Vector.txt: operation not allowed.
The file is in my βResourcesβ folder for my project, and this line is executed in the .mm file. Inside the same project, in .cpp files I use almost the exact exact code that works without problems. It can't seem like this ...
thanks
Kevin_TA
source share