Creates a new Map from an input stream. You must be sure that the stream data is in the binary Sofu format. Otherwise use SofuReader.LoadFile(Stream) instead.
Declaration Syntax
C# |
public BinaryParser0200( Stream input )
Parameters
- input (Stream)
- Stream to read from
Examples
Read a binary file from a Filestream and write its Values
CopyC#
FileStream t = File.OpenRead("file.bsofu"); Sofu.Sofu.Map file = new BinaryParser0200(t); foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { Console.Write("Key : " + entry.Key + " Value: "); Console.WriteLine(entry.Value.AsValue().ToString()); }