Open Rails

STFReader.ReadItem Method

[This is preliminary documentation and subject to change.]

Returns the next whitespace delimited {item} from the STF file skipping comments, etc.

public string ReadItem();

Return Value

The next {item} from the STF file, any surrounding quotations will be not be returned.

Remarks

If a comment/skip/#*/_* ignore block is the last {item} in a block, rather than being totally consumed a dummy '#' is returned, so if EndOFBlock() returns false, you always get an {item} (which can then just be ignored).

See Also

STFReader Class | Orts.Parsers.Msts Namespace