Good day,

I am writing a datalogging program for my IMU's. I want to add a newline after every value logged, however, I keep on getting an error on this line: 

```
strcat(file_DT,"\n");

```

The error states that there is an "incompatible types in assignment of 'char' to 'char'[100]"

I tried using

```
file_DT+="\n"; 

```

earlier but it turns out it only works on strings.

I could not find any solutions to my predicament. Is there a better way to do this? Your help would be very appreciated :)

```
float deltaTime2;
FILE *fileDT;
char file_DT[100];
const char *filenameDT = "dT.txt";

while(1){

    /* do quadcopter orentation sampling here */

// log DT
fileDT = fopen(filenameDT, "a+");
    if (fileDT){ //if file exists
        snprintf(file_DT, 100, "%f", deltaTime2);
        strcat(file_DT,"\n");
        fwrite(&file_DT[0], sizeof(char), 100, fileDT);
        cout << "Logging DT" << << endl;
        fclose(fileDT);
        fileDT = NULL;
    }
    else{ //no file, generate file
        cout << "No file present, generating new fileDT" <<     endl;
        snprintf(file_DT, 100, "%f", deltaTime2);
        strcat(file_DT,"\n");
        fwrite(&file_DT[0], sizeof(char), 100, fileDT);
        fclose(fileDT);
        fileDT = NULL;
    }

}

```