lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is it possible to enhance fh:read() in Lua-Code itself?

Now I use this:

Word= string.byte(Filehandle:read(1))*256
     +string.byte(Filehandle:read(1))

But I would prefer this way:

Word=Filehandle:read('w')

(Please no discussion about Word 16 or 32 bit ;-)

Thanks


Markus