(findfile filename)
Find that file.
This function searches your computer for the location of a file. This is important because if you specify the name of a file in your LISP program that doesn't exist, you crash the program. When the file exists, its path and filename are returned; if it doesn't, the function returns nil.
Examples
Code | Returns |
---|---|
(findfile "sampledwg.dwg") | "c:\\icad\\sample\\sampledwg.dwg" |
(findfile "junk.$$$") | nil |