ISpectrumFileReader.Close
Performs any cleanup when finished with a file.
Remarks
Call Close when finished reading, to release the file.
Syntax
| Syntax | Description |
|---|---|
| Close() | Performs any cleanup. |
Example
1
2
3
4
5
6
using Nova.Data;
using Nova.Io.Read;
ISpectrumFileReader reader = SpectrumFileReaderFactory.GetReader("DDA.mzML", MSFilter.MS2);
Spectrum spectrum = reader.GetSpectrum();
reader.Close();
This post is licensed under CC BY 4.0 by the author.