How can i delete all of the file content? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How can i delete all of the file content?

20th Apr 2016, 7:28 PM
Mark Lee
Mark Lee - avatar
2 ответов
0
you can use the following code. $file = fopen("file.txt","x"); it will delete all your previous data in file.
28th Apr 2016, 1:13 PM
Asfandyar khan
Asfandyar khan - avatar
0
fopen with x-permisson.
13th Jun 2016, 4:56 PM
#Bargas
#Bargas - avatar