Fremove

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:51, 30 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 21:41, 4 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 25: Line 25:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
[[Category:File Functions]] [[Category:File Functions]]
 +
 +[[fr:Fremove]]

Revision as of 21:41, 4 February 2014


Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

Delete a file.


Parameters:
(name[])
name[]The path of the file to delete. (NOTE: NOT a file handle)


Return Values:

true (1) on success, false (0) on failure.


Image:32px-Circle-style-warning.png

Important
Note

The file path must be valid.


Image:32px-Ambox_warning_orange.png

Note

Files that are currently open (fopen) must be closed first (fclose) to be deleted.


fremove("Example.txt");

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages