# (findfile filename)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="174"></a>
## (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.$
quot;) | nil |
**Tell me about...**
[(getfiled title filename ext flags)](%28getfiled%20title%20filename%20ext%20flags%29.md)
[(load filename \[flag\])](%28load%20filename%20-flag-%29.md)
[(open filename mode)](%28open%20filename%20mode%29.md)
[(startapp appname \[filename\])](%28startapp%20appname%20-filename-%29.md)
[(xload appname \[flag\])](IDR_LISP_B313.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28findfile%20filename%29.md)