Hi , I am new in this field.
I am trying to read float values from matlab file and trying to store it in buffer of size 1024 and then passing to my fft module .
But it shows some Debug assertion problem at last.
However values are written correctly in the buffer.
plz tell me the debug assertion problem.
Here is my code
fp=fopen("decimalnewdata.txt","r"); //reading transmitted baseband data from a file
puts("cannot open file");
while(!feof(fp)) /*here's my problem*/
fscanf(fp,"%f\n", &line); /*fscanf is used, reads data from file ignoring other ascii characters*/
printf("%f\n",line); /*just for checking*/
nwritten = fprintf(fp1,"%f\n", buffer[i]);