Open Rails

STFReader Constructor

[This is preliminary documentation and subject to change.]

Open a file, reader the header line, and prepare for STF parsing

STFReader(
   string filename,
   bool useTree
);

Parameters

filename
Filename of the STF file to be opened and parsed.
useTree

true - if the consumer is going to use the Tree Property as it's parsing method (MSTS wagons & engines)

false - if Tree is not used which signicantly reduces GC

See Also

STFReader Class | Orts.Parsers.Msts Namespace | STFReader Constructor Overload List