FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
This page is new in 10.1.

stream-file-name

Arguments: stream &optional errorp

Returns the pathname of the file associated with stream.

cl-user(6): (setq mystream (open "myfile" :direction :output))
#<file-simple-stream #P"myfile" for output pos 0 @ #x10003650b82>
cl-user(7): (stream-file-name mystream)
#P"myfile"
cl-user(8): 

As the example shows, the returned pathname may be relative. It also may be a logical pathname. It is not necessarily the truename.

If no filename is associated with stream, the behavior depends on the value given for errorp: If errorp is nil or not given then nil is returned, and if errorp is given and is non-nil then a type-error is signaled, based on the stream not being a proper file-stream.


Copyright (c) 1998-2017, Franz Inc. Oakland, CA., USA. All rights reserved.
This page is new in the 10.1 release.
Created 2017.2.15.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
This page is new in 10.1.