Template:IO Restrictions: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(http://forum.flightgear.org/viewtopic.php?f=30&t=21615)
 
m (http://forum.flightgear.org/viewtopic.php?f=30&t=21615#p196502)
Line 1: Line 1:
<font color="red"><b>Note:</b> All FlightGear I/O handled via [[Nasal]] and/or fgcommands, is subject to validation via [[IORules]].</font>
<font color="red"><b>Note:</b> All FlightGear I/O handled via [[Nasal]] and/or fgcommands, is subject to validation via [[IORules]].</font>
[[$FG HOME]] is generally accessible for writing:
<syntaxhighlight lang="nasal">
var path = getprop("/sim/fg-home") ~ "/Export/test.xml";
io.write_properties(path, "/sim");
</syntaxhighlight>

Revision as of 12:14, 20 December 2013

Note: All FlightGear I/O handled via Nasal and/or fgcommands, is subject to validation via IORules.

$FG HOME is generally accessible for writing:

var path = getprop("/sim/fg-home") ~ "/Export/test.xml";
io.write_properties(path, "/sim");