546
edits
mNo edit summary |
m (→Reading files) |
||
Line 5: | Line 5: | ||
== Writing files == | == Writing files == | ||
== Reading files == | == Reading files == | ||
=== io.basename() === | |||
Works like standard Unix command basename. Returns the file name from a given path. | |||
<syntaxhighlight lang="nasal"> | |||
io.basename(<path>); | |||
</syntaxhighlight> | |||
=== io.dirname() === | |||
Works like standard Unix command dirname. Returns the directory part from a given path. | |||
<syntaxhighlight lang="nasal"> | |||
io.basename(<path>); | |||
</syntaxhighlight> | |||
=== io.readfile() === | |||
Reads and returns a complete file as a string. | |||
<syntaxhighlight lang="nasal"> | |||
io.readfile(file); | |||
</syntaxhighlight> | |||
== XML == | == XML == | ||
== Serializing Nasal types == | == Serializing Nasal types == |
edits