AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Overwrite a file with an empty one (https://forums.alliedmods.net/showthread.php?t=132149)

Jack86 07-12-2010 11:52

Overwrite a file with an empty one
 
I guess the solution for this is simple but nothing comes to my mind right now, i tried like this

format(szFilename, 63, "%s/file.txt", basedir)
delete_file(szFilename)
write_file(szFilename,"")

but the file is still there with its content.


All times are GMT -4. The time now is 07:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.