#!/bin/9lua xio=require("xio") function test1() f=xio.open("dxio") print(f) s=xio.read(f) print(s) xio.close(f) end function test2() f=xio.open("dxio") print(f) s=f:read() print(s) f:close() end -- test1() and test2() are equivalent test2()