Creates a new Map from a file. You must be sure that the file is binary. Otherwise use SofuReader.LoadFile(Stream) if you aren't sure.
Declaration Syntax
C# |
public BinaryParser0200( string infile )
Parameters
- infile (String)
- File of binary sofu to read from
Examples
Read a binary file from a File and write its Values
CopyC#
Sofu.Sofu.Map file = new BinaryParser0200("file.bsofu"); foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { Console.Write("Key : " + entry.Key + " Value: "); Console.WriteLine(entry.Value.AsValue().ToString()); }