Please enable JavaScript to view this site.

A-Shell Reference

LOOKUP fspec, blks

LOOKUP checks for size and existence of a file.

Parameters

fspec is a filespec in native or AMOS format. Default extension is .DAT.

blks is a floating point variable which returns the size of the file in "blocks" (512 bytes). Adding further to the confusion of the archaic units, if the file is an exact multiple of 512 bytes, the number of blocks will be reported as a negative value, indicating a "random" file; otherwise it will be a positive number. See the system option ABSLOOKUP to override that behavior. If the file does not exist, the return value is 0. If the file exists but has zero bytes, the return value is 0.5.

See Also