Tool/software: Code Composer Studio
Hello,
I am having difficulty figuring out why fopen does not allow me to open the file. When I debug it won't reach the if statement and currently doesn't let me set a breakpoint at the fopen line. I tested my code in MVS and it works fine.
I only get two warnings:
#10247-D null: creating output section ".cio" without a SECTIONS specification Test C/C++ Problem
#10247-D null: creating output section "ramfuncs" without a SECTIONS specification Test C/C++ Problem
#include "DSP28x_Project.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main(void)
{
DisableDog();
FILE *outfile = fopen("test.csv", "r");
if (outfile != NULL) {
exit(1);
}
char data[52][100];
fgets(data[0], 100, outfile);
fclose(outfile);
}
Thanks in advance,
Jose