lua-users home
lua-l archive

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


On Sat, Apr 3, 2010 at 3:31 AM, Tom N Harris <telliamed@whoopdedo.org> wrote:

> I'm having a problem with opening multiple files inside an archive. Well not
> really a problem, I just seek back to the correct position before every
> read. But this would be so much simpler if I could duplicate the handle, but
> there doesn't seem to be a way to do this other than adding a module to
> export `dup`. Is there something I'm missing that will allow this?

Open the same file again and you have 2 file handles to same file.

-- 
Natanael Copa