ANSI Common Lisp 20 Files 20.2 Dictionary of Files
- Arguments and Values:
pathspec - a pathname designator.
date - a universal time or nil.
Returns a universal time representing the time at which the file
specified by pathspec was last written (or created),
or returns nil if such a time cannot be determined.
(with-open-file (s "noel.text"
:direction :output :if-exists :error)
(format s "~&Dear Santa,~2%I was good this year. ~
Please leave lots of toys.~2%Love, Sue~
~2%attachments: milk, cookies~%")
(with-open-file (s "noel.text")
- Affected By:
The host computer's file system.
- Exceptional Situations:
An error of type file-error is signaled if pathspec is wild.
An error of type file-error is signaled
if the file system cannot perform the requested operation.
- See Also:
Section 184.108.40.206 Universal Time,
Section 19.1.2 Pathnames as Filenames
- Allegro CL Implementation Details:
for information on the implementation of file-write-date. Note
the links are to the documentation for the current Allegro CL
version. Replace /current/ in the URL with the Allegro CL version
number to see similar documentation is earlier releases.