OpenDiskFileInDir
Opens a disk file contained in a specific directory.
Synopsis
Item OpenDiskFileInDir( Item dirItem, char *path )
Description
Similar to OpenDiskFile()
, this function allows the caller to specify the item of a directory that should serve as a starting location for the file search.
Arguments
- dirItem
- The item number of the directory containing the file.
- path
- A pathname for the file that is relative to the directory specified by the dirItem argument.
Return Value
The function returns the item number of the opened file (which can be used later to refer to the file), or a negative error code if an error occurs.
Implementation
SWI implemented in file folio V20.
Associated Files
filefunctions.h
See Also
OpenDiskFile
(), OpenDirectoryItem(), OpenDirectoryPath(), OpenDiskStream(), CloseDiskFile()