Sofu Documentation
LoadFile Method (infile)
NamespacesSofu.SofuSofuReaderLoadFile(String)
Reads data from a file an puts it into a SofuObject tree.
Declaration Syntax
C#
public static Map LoadFile(
	string infile
)
Parameters
infile (String)
File to read from
Return Value
A Sofu.Map containing the read data
Examples

Read 3 files and write them out again. This makes use of the auto detection.

CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("text.xml"); //SofuML input
file.Write("text.sofu");//Write it out.
Sofu.Sofu.Map file2 = SofuReader.LoadFile("binary.bsofu"); //Binary input
file2.Write("notbinary.sofu");//Write it out.
Sofu.Sofu.Map file3 = SofuReader.LoadFile("text.sofu"); //Normal Sofu
file3.WriteBinary("text.bsofu"); //Write it to Binary

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)