Y_INI Deleting. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI Deleting. (
/showthread.php?tid=457493)
Y_INI Deleting. -
Alexis1999 - 11.08.2013
I've searched a bit the forums for a way to delete the .ini files and I found the function
fremove which does not seem to be working with .ini ( Works perfectly for .txt ) so I was wondering if there were in alternatives to fremove or maybe another method of using it to successfully delete .ini?
Re: Y_INI Deleting. - Emmet_ - 11.08.2013
It
should work. fremove works with any file, so either the specified path is wrong or the file is in use (use fclose to close a file).
Re: Y_INI Deleting. -
Alexis1999 - 11.08.2013
Quote:
Originally Posted by Emmet_
It should work. fremove works with any file, so either the specified path is wrong or the file is in use (use fclose to close a file).
|
I thought too about the wrong path but I experimented a bit and added a .ini to scriptfiles which is default area and tried fremove("test.ini"); but that didn't work aswell.
EDIT: NVM Apparently the problem was it was already in use thanks.