[Top] [Prev] [Next]

remove - remove a file

include "sys.m";
sys:= load Sys Sys->PATH;
remove: fn(file: string): int;

Description

remove (file)

The remove function removes file from the directory containing it. The contents of the file are discarded. The user must have write permission in the containing directory.

The file argument can be a directory. If so, it must be empty for remove to succeed.

The remove function returns zero if it deletes the file, -1 otherwise.

See Also

Limbo System Module



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.