Retrives a specifc Sofu.Map from this Map indentified by key.
- key (String)
- Identifies the Map to get
The Map at key
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); try { file.map("Output").Write("output.sofu"); } catch (SofuNoElementException e) { Sofu.Sofu.Map output = new Sofu.Sofu.Map(); output.Write("output.sofu"); } catch (SofuNotMapException e) { Console.Out.WriteLine("Can't generate output file, map expected!"); }
| Exception | Condition |
|---|---|
| SofuNoElementException | Will throw SofuNoElementException when the Key is not in this Map |
| SofuNotMapException | Throws a SofuNotMapException if the requested element is not a Map |