Maya provides you with a
general interface for reading and writing maya related files.
The class MFileIO allows
you to load and save Maya ascii & binary files. It also
allows you to import and export custom file formats.
For the purpose of command
line or batch process exporters, this class may well come in