IQ FI - Inquire if a file exists

(1/11/10)

PURPOSE

To inquire whether a file exists or not.   Example.

SEE ALSO

IQ DIR [Inquire if a directory exists]
IQ SYNC [Wait until a file exists]
IQ GONE [Wait until a file is gone]

USAGE

.OPERATION: IQ FI [exists],[isopen]

.QUERY EXISTANCE OF FILE: PIC001
[Enter name of file which you want to know if it exists or not. The file may be a non-SPIDER file, a SPIDER image file, an image in a SPIDER image stack, an inline SPIDER "file", or an image in an inline SPIDER image stack "file" . If the file exists and a register variable is supplied on the operation line, the register's contents will be set to 1.0. If the file does not exist the register's contents will be set to 0.0.

If the file is already opened and a second register variable is supplied on the operation line, the second register's contents will be set to 1.0. If the file is not open the register's contents will be set to 0.0.]

NOTES

  1. Implemented by: ArDean Leith

SUBROUTINES

INQUIREIF, INQUIREIF1

CALLER

UTIL4

© Copyright Notice /       Enquiries: spider@wadsworth.org