(ANSI Standard)
#include <stdio.h> stat = remove( filename );
"remove" deletes a file from the file system. The file should not currently be open.
If the name of the file begins with "fc*", it is assumed to be a tempfile name. In TSS, the file will be removed from AFT; in batch, the file code will be released. If the name of the file does not begin with "fc*", "remove" uses an FMS release call to release the file.
Note that if you try a call of the form
remove("xxx");
"remove" will ignore any temporary file named "xxx" and will attempt to delete a permanent file with this name (in the current catalog). "remove" does not check the AFT except for "fc*" files.
Copyright © 1996, Thinkage Ltd.