Which instrument/vendor are you using ?
If the direct export to cdf/mzXML/mzData is not possible for some reason, you might try using OpenMS' FileConverter (see below) or writing your own.
FileConverter -- Converts between different MS file formats.
Version: 1.8.0 Jun 21 2011, 16:52:13
Usage:
FileConverter <options>
Options (mandatory options marked with '*'):
All conversions are possible, but you might lose information!
-in <file>* Input file (valid formats: 'mzData', 'mzXML', 'mzML', 'DTA', 'DTA2D', 'mgf', 'featureXML', 'consensusXML', 'ms2', 'fid', 'tsv', 'peplist', 'kroenik', 'edta')
-in_type <type> Input file type -- default: determined from file extension or content
(valid: 'mzData', 'mzXML', 'mzML', 'DTA', 'DTA2D', 'mgf', 'featureXML', 'consensusXML', 'ms2', 'fid', 'tsv', 'peplist', 'kroenik', 'edta')
-out <file>* Output file (valid formats: 'mzData', 'mzXML', 'mzML', 'DTA2D', 'mgf', 'featureXML', 'consensusXML')
-out_type <type> Output file type -- default: determined from file extension or content
(valid: 'mzData', 'mzXML', 'mzML', 'DTA2D', 'mgf', 'featureXML', 'consensusXML')
Common TOPP options:
-ini <file> Use the given TOPP INI file
-threads <n> Sets the number of threads allowed to be used by the TOPP tool (default: '1')
-write_ini <file> Writes the default configuration file
--help Shows options
--helphelp Shows all options (including advanced)