Template:IO Restrictions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Link fix: IORules → IOrules) |
||
Line 1: | Line 1: | ||
<font color="red"><b>Note:</b> All FlightGear disk I/O handled via [[Nasal]] and/or fgcommands, is subject to validation via [[ | <font color="red"><b>Note:</b> All FlightGear disk I/O handled via [[Nasal]] and/or fgcommands, is subject to validation via [[IOrules]]. This includes the '''SGPath''' bindings in 2.99+</font> | ||
However, unlike [[$FG_ROOT]] [[$FG_HOME]] is generally accessible for writing: | However, unlike [[$FG_ROOT]] [[$FG_HOME]] is generally accessible for writing: |
Revision as of 15:13, 20 December 2013
Note: All FlightGear disk I/O handled via Nasal and/or fgcommands, is subject to validation via IOrules. This includes the SGPath bindings in 2.99+
However, unlike $FG_ROOT $FG_HOME is generally accessible for writing:
var path = getprop("/sim/fg-home") ~ "/Export/test.xml";
io.write_properties(path, "/sim");
For additional examples, see $FG_ROOT/Nasal/io.nas To learn more about PropertyList processing via loadxml and savexml, please see $FG_ROOT/Docs/README.commands