OpenDiskFile

Opens a disk file.

Synopsis

Item OpenDiskFile( char *path )

Description

This function opens a disk file, given an absolute or relative pathname, and returns its item number.

Arguments

path
An absolute or relative pathname (a null- terminated text string) for the file to open, or an alias for the pathname.

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

CloseDiskFile(), OpenDiskFileInDir(), OpenDiskStreams()