* Curtis Olson -- Friday 12 January 2007:
> On 1/12/07, Melchior FRANZ <[EMAIL PROTECTED]> wrote:
> > Otherwise extra files would be needed.

> We don't have the ability to write files in nasal though, do we?

Yes, we do, but only XML files (which is fine for this purpose),
and only to existing dirs, such as getprop("/sim/fg-home"). There's
currently no way to create dirs from Nasal. So we would currently
have to dump all the files into ~/.fgfs/.



> Or more specifically, we haven't turned on that feature because
> of potential safety concerns, right?

That's a different thing. Yes, the io library (iolib.c) is currently
commented out, but that's not needed for writing XML files.

See the "savexml" fgcommand:

  savexml = func(name, node) { fgcommand("savexml",
      props.Node.new({"filename": name, "sourcenode": node})); }

Also see http://members.aon.at/mfranz/flightgear/ac_state.nas which
writes aircraft specific data into separate files already now.

m.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to