View Single Post
  #2  
Old 04-01-2005, 03:33 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Re: function that me controls the existence a file

Check out your LISP manual. For files, the LISP open function does what you want - see http://www.lisp.org/HyperSpec/Body/fun_open.html. For example:
Code:
  (setf s (open "foobar" :direction :output :if-does-not-exist :create))
For directories, either use LISP's directory command, or one of the file/directory handling functions documented in the Developer's Kit.

Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote