Template:IO Restrictions

From FlightGear wiki
Revision as of 15:13, 20 December 2013 by Johan G (talk | contribs) (Link fix: IORules → IOrules)
Jump to navigation Jump to search

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