PDA

Visualizza la versione completa : [C] append file


magicofred
24-06-2007, 23:37
come posso scrivere in append un file? cioč.. se esiste scrivo in append, altirmenti devo crearlo.

oregon
24-06-2007, 23:50
FILE * fopen ( const char * filename, const char * mode );

mode
"a" Append to a file. Writing operations append data at the end of the file. The file is created if it does not exist.

http://www.cplusplus.com/reference/clibrary/cstdio/fopen.html

Loading