CHECKFILE Function

Determines if a file can be read from or written to.

Usage

Input Paramters

Returned Value

Keywords


NOTE: Either the Read keyword or the Write keyword must be specified.

Discussion

Example

status = CHECKFILE(!Data_dir + 'head.img', /Read)

PRINT, status 1

status = CHECKFILE(!Data_dir + 'new_head.img', /Write)

PRINT, status 1

status = CHECKFILE(!Data_dir + 'head_not.img', /Read)

PRINT, status 0

; Check the status of a file.

status = CHECKFILE(!Dir, /Read, Is_Dir = isdir)

PRINT, status 1

PRINT, isdir 1

; Determine if a directory exists.

status = CHECKFILE(!Data_dir + 'head.img', Size = sz)

PRINT, sz 262144

; Check the size of a file.

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.