To clarify, I have to import a data file with a specific format and perform operations on the data and export it back out in the same format.
Here is an example. The data is tab-delimited and the EOL characters are newlines (\n) not CRLF's as I said before.
OOIBase32 Version 1.0.0.8 Data File
++++++++++++++++++++++++++++++++++++
Date: Thursday, January 31, 2013, 11:03:33
User: Valued Ocean Optics Customer
Spectrometer Serial Number:
Spectrometer Channel: Master
Integration Time (msec): 100
Spectra Averaged: 25
Boxcar Smoothing: 0
Correct for Electrical Dark: Disabled
Time Normalized: Disabled
Dual-beam Reference: Disabled
Reference Channel: Master
>>>>>Begin Spectral Data<<<<<
189.41 0.000
189.77 0.125
190.13 0.119
190.49 0.519
190.85 0.000
191.21 -0.824
191.57 0.000
191.93 0.632
192.29 -0.341
...
>>>>>End Spectral Data<<<<<