Heya Disorder. The answer to this can be found fairly easily via the search- Regardless you can do this by using the tool 'export_spells.pl'. This is a perl program which connects to your database and produces a spell file by reading the spells_new table.
If you are using the source from SVN, export_spells.pl is located in the utils/scripts directory.
Or, to browse directly
http://code.google.com/p/projecteqem...port_spells.pl