Acrescimo de exemplo.

Acrescimo do logo.
This commit is contained in:
tomas
2004-10-29 16:15:59 +00:00
parent 40db9dba61
commit f66af01eec
3 changed files with 30 additions and 6 deletions

View File

@@ -1,24 +1,24 @@
#!/usr/local/bin/lua -i
require"luafilesystem"
require"lfs"
print(luafilesystem.version)
print(lfs.version)
function p ()
local fh = assert (io.open ("teste", 'r'))
assert (luafilesystem.lock (fh, 'r'))
assert (lfs.lock (fh, 'r'))
print (fh:read"*a")
fh:close ()
end
function wr ()
fh = assert (io.open ("teste", 'w'))
assert (luafilesystem.lock (fh, 'w'))
assert (lfs.lock (fh, 'w'))
end
function op ()
fh = assert (io.open ("teste", 'r'))
assert (luafilesystem.lock (fh, 'r'))
assert (lfs.lock (fh, 'r'))
end
function fw (x)