Concept Framework 1.0 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: Thu Oct 15 20:02:04 2009 GMT(c)2009 RadGs Software