How to create empty file in scriptfiles folder programely
#6

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Not really, the fwrite is not necessary
PHP код:
new File:CreateNewFile fopen("FileName.txt"io_readwrite);
fclose(CreateNewFile); 
A safety check would be good in place, so if it fails you don't crash the server with fclose.

PHP код:
new File:CreateNewFile fopen("FileName.txt"io_write);
if(
CreateNewFilefclose(CreateNewFile); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)