Which mode argument is used to turncate? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Which mode argument is used to turncate?

C Programming

24th Jan 2019, 12:44 PM
Sanjeev Kumar
Sanjeev Kumar - avatar
3 Answers
+ 1
I assume you are talking about truncating files. Any of the fopen modes that contain 'w' ("w"," wb" "w+","wb+" or" w+b")will "truncate" or delete and overwrite an existing file.
25th Jan 2019, 3:05 AM
Joseph Whalen
0
w
24th Mar 2020, 5:13 AM
DONTHAGANI SHASHANK
DONTHAGANI SHASHANK - avatar
0
w
24th Mar 2020, 6:03 AM
RISWAN MOHAMED
RISWAN MOHAMED - avatar