[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: File-like string scanning
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 3 Jun 2014 09:11:07 +0200
I find myself writing my own code for functions string.lines(...) and
string.read(...) so that str:lines and str:read have the same semantics
as file:lines and file:read, except that they are use-once since strings
can't store position.
I can't believe that I'm the first person who has though of doing this.
Any pointer to a module that does it nicely will be appreciated.