# CloseDiskStream

Closes a disk stream.

### Synopsis

`void CloseDiskStream( Stream *theStream )`

### Description

This function closes a disk stream that was opened with a call to `OpenDiskStream()`. It closes the stream's file, deallocates the buffer memory, and releases the stream structure.

### Arguments

theStream
  A pointer to the stream structure for an open file.

### Implementation

Folio call implemented in file folio V20.

### Associated Files

filestreamfunctions.h, filesystem.lib

### See Also

``OpenDiskStream`(), ReadDiskStream(), SeekDiskStream()`