---
title: "IFormatReader..::.Close Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFormatReader_Close.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# IFormatReader.Close Method 
 
Closes format reader, and detaches it from previously opened file (or other media).
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Sub Close
```
 
```csharp
void Close()
```
 
## Remarks
  
You should always use this method to detach from opened file (or other media). As soon as you call [Open(String)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFormatReader_Open_1_bb3a7a4f.htm.md) method, file will be locked until you close the reader.
 
If you close the reader which has not been opened, the method does nothing. So you need not do any checks to ensure if reader is opened to close it.
   
## See Also

### Reference

- [IFormatReader Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_IFormatReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
