Reads data from a file an puts it into a SofuObject tree.
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