how to append to a file in c code example
Example: append to file open c
char inputChar = 'h';
int fdDataTxt = open("./data.txt", O_WRONLY | O_APPEND | O_CREAT, 0666);
write(fdDataTxt, &inputChar,1);
char inputChar = 'h';
int fdDataTxt = open("./data.txt", O_WRONLY | O_APPEND | O_CREAT, 0666);
write(fdDataTxt, &inputChar,1);