FTN95 offers a wide variety of file manipulation routines. Routines which take
operating system file handles as arguments must only be used with file handles
obtained with one of the file opening routines detailed in this section. The
reading and writing routines use a buffer to improve the performance. These
buffers are cleared when a file is closed or when a program terminates and
returns to the operating system. As a result of this, a file which has been
open for writing may give an error (e.g. full disk) as it is closed with
CLOSEF@. In all cases where a routine returns an error code, this may
be interpreted by calling a routine such as DOSERR@.
Sets the current directory. |
|
Closes a file. |
|
Closes and delete a file. |
|
Gets the current directory. |
|
Obsolete routine. Use CURDIR@. |
|
Clears a file for writing. |
|
Deletes a file. |
|
Searches for a file with a given path name or wildcard. |
|
Obsolete routine. Use FEXIST@ instead. |
|
Gets the size of a file in bytes. |
|
Truncates an open file at its current position. |
|
Gets information about a specified file. |
|
Obtains directory information. |
|
Repositions a file. |
|
Moves the file pointer to end-of-file. |
|
Gets a list of files in the current working directory. |
|
Gets the fully qualified pathname. |
|
Creates a new DOS directory. |
|
Opens a file for reading. |
|
Opens a file for reading or writing. |
|
Opens a file for writing. |
|
Reads binary data from a file. |
|
Reads ASCII text from a file. |
|
Renames a file. |
|
Gets the position of a file. |
|
Sets a file attribute. |
|
Changes the extension of a given file name. |
|
Adds an extension to a given file name. |
|
Provides a unique name for a file. |
|
Gets a suitable name for a temporary file. |
|
Checks for the matching of a file name with a wild card. |
|
Writes binary data to a file. |
|
Writes a line of data to an ASCII file. |