Posts by Tiago Wutzke de Oliveira • 1 point
1 post
-
0
votes1
answer90
viewsA: POSIX - problems to write to file using open and write
At the time of creating the copy file, you need to inform Read and Write permission in this new copy file with the flag O_RDWR: if( ( arqSaida = open(filename2, O_CREAT | O_EXCL | O_RDWR, mode) ) ==…