Reads data from a textwriter an puts it into a SofuObject tree.
Warning this does not support binary input, give it a Stream please.

C# |
public static Map LoadFile( TextReader input )

- input (TextReader)
- Textwriter to read from

A Sofu.Map containing the read data

Load a file called "text.sofu" encoded in UTF7 and write it out again in default encoding

TextReader t = new StreamReader("text.sofu", Encoding.UTF7); Sofu.Sofu.Map file = SofuReader.LoadFile(t); file.Write("text.sofu");//Convert it to UTF-16