# CloseDiskFile

Closes a file.

### Synopsis

`int32 CloseDiskFile( Item fileItem )`

### Description

Closes a disk file that was opened with a call to `OpenDiskFile()` or `OpenDiskFileInDir()`. The specified item may not be used after successful completion of this call.

### Arguments

fileItem
  The item number of the disk file to close.

### Return Value

The function returns a value greater than or equal to 0 if successful or a negative error code if an error occurs.

### Implementation

SWI implemented in file folio V20.

### Associated Files

filefunctions.h

### See Also

``OpenDiskFile`(), OpenDiskFileInDir()`