MediaWiki has been updated to version 1.35.1. Please report any problems here.
Nasal library/io
![]() |
Work in progress This article or section will be worked on in the upcoming hours or days. See history for the latest developments. |
![]() |
The FlightGear forum has a subforum related to: Nasal Scripting |
Creating files
Writing files
Reading files
io.basename()
Works like standard Unix command basename. Returns the file name from a given path.
io.basename(<path>);
io.dirname()
Works like standard Unix command dirname. Returns the directory part from a given path.
io.basename(<path>);
io.readfile()
Reads and returns a complete file as a string.
io.readfile(file);