Post

FileReader.Reset

Returns to the start of the open file for sequential reading.


Remarks

After Reset, ReadSpectrum with no scan number starts again from the first spectrum that passes the filter.


Syntax

SyntaxDescription
Reset()Returns to the start of the open file for sequential reading.

Example

1
2
3
4
5
6
7
8
9
using Nova.Data;
using Nova.Io.Read;

FileReader reader = new FileReader("DDA.raw");
Spectrum first = reader.ReadSpectrum();
Spectrum second = reader.ReadSpectrum();

reader.Reset();
Spectrum again = reader.ReadSpectrum();   // the same scan as first
This post is licensed under CC BY 4.0 by the author.

Trending Tags