mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 03:18:43 +08:00
change code structure
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import("lib.nas");
|
||||
|
||||
var fd=io.open("test/filesystem.nas");
|
||||
while((var line=io.readln(fd))!=nil)
|
||||
println(line);
|
||||
io.close(fd);
|
||||
println(io.stat("test/filesystem.nas"));
|
||||
|
||||
var dd=unix.opendir("test");
|
||||
while((var name=unix.readdir(dd))!=nil)
|
||||
println(name);
|
||||
unix.closedir(dd);
|
||||
Reference in New Issue
Block a user