Concept Framework 2.2 documentation Contents | Index

standard.C.io._unlink

Name Version Deprecated
_unlink version 1.0 no

Prototype:
number _unlink(string filename)

Parameters:
filename      [in] Name of file to remove

Description:
The _unlink function deletes the file specified by filename.

Example:
import standard.C.io

define FILENAME     "test.txt"

class Main {
     function Main() {               
          if (_unlink(FILENAME)==-1)
               echo "Could not delete "+FILENAME;
          else
               echo "Deleted "+FILENAME;
     }
}  

Results 
Deleted test.txt  

Returns:
_unlink returns 0 if successful. Otherwise, the function returns -1.

Documented by Simona Plesuvu, generation time: Sun Jan 27 18:15:16 2013 GMT(c)2013 Devronium Applications