+ 1

Is it possible to use ios::app in C?

I need it for file handling, and my friend told me he used ios::app in C++ but he's not sure if C supports ios::app. And when I Google searched on it, all the information given are based on C++, just wondering if anyone could help here. Thanks!

8th Nov 2018, 6:47 PM
Pomelo
2 Réponses
0
As far as I remember in C also there is 'fopen' function for operations read/write file. Try that: mf=fopen (“myfile/test.txt”,”w”); fprintf (mf,“test”); fclose (mf);
8th Nov 2018, 8:06 PM
Александр Лебедев
Александр Лебедев - avatar