+ 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 Answers
8th Nov 2018, 7:02 PM
blACk sh4d0w
blACk sh4d0w - avatar
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