[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: file:seek() is broken in Lua 5
- From: Serge Semashko <serge@...>
- Date: Wed, 18 Jun 2003 20:51:42 +0300
---------------------------------------------------------------------
file = io.open("test.bin", "rb")
file:seek(5)
---------------------------------------------------------------------
/cygdrive/d/tools/lua: E:\Projects\test.lua:2: bad argument #1 to `seek' (invalid mode)
stack traceback:
[C]: in function `seek'
E:\Projects\test.lua:2: in main chunk
[C]:[C]