unlink
Prev File System Next

unlink

unlink — deletes a file.

Synopsis

unlink (filename)

		

Arguments

filename

A string representing a valid file name.

Returns

t if the file could be deleted, otherwise nil.

Description

This functioin deletes a file in the file system. It will fail if the given file does not exist, or the calling process does not have sufficient privilege to delete the file. Wild cards are not expanded in the file name.

Example

Gamma> fu = open("todeletefile.dat","r");
#<File:"todeletefile.dat">
Gamma> unlink("todeletefile.dat");
t
Gamma> unlink("todeletefile.dat");
nil
Gamma>  
		

See Also

open


Prev Up Next
unbuffer_file  Home OS APIs