---
title: "FormatManager..::.CreateFormatReader Method (String)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_FormatManager_CreateFormatReader_1_bb3a7a4f.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/)

# FormatManager.CreateFormatReader Method (String)
 
Creates and returns format reader opened on specified file.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function CreateFormatReader ( _fileName As String _
) As IFormatReader
```
 
```csharp
public static IFormatReader CreateFormatReader(string fileName
)
```
 
### Parameters
 
 - fileName
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
The name of the file to open format reader on.
 
### Return Value
The object that implements the [IFormatReader](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_IFormatReader.htm.md) interface which is opened on the specified file.
 
## Remarks
 This method automatically determines the file format and creates appropriate format reader class instance.
   
## See Also

### Reference

- [FormatManager Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatManager.htm.md)
- [CreateFormatReader Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_FormatManager_CreateFormatReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
