Answers for "how to append to a file in c"

0

append to file open c

char inputChar = 'h';
int fdDataTxt = open("./data.txt", O_WRONLY | O_APPEND | O_CREAT, 0666);  
write(fdDataTxt, &inputChar,1);
Posted by: Guest on June-22-2020

Code answers related to "how to append to a file in c"

Browse Popular Code Answers by Language